#1143422 sqlreduce: FTBFS: E AttributeError: 'DeleteStmt' object has no attribute 'returningList'. Did you mean: 'returningClause'?

#1143422#5
Date:
2026-08-01 22:39:26 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:sqlreduce, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:385: python3.13 setup.py clean
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sqlreduce/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.13' does not exist -- can't clean it
I: pybuild base:385: python3.14 setup.py clean
running clean
removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sqlreduce/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.14' does not exist -- can't clean it
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --with python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:385: python3.13 setup.py config
running config
I: pybuild base:385: python3.14 setup.py config
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:385: /usr/bin/python3.13 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sqlreduce/build/sqlreduce
copying sqlreduce/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sqlreduce/build/sqlreduce
copying sqlreduce/main.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sqlreduce/build/sqlreduce
I: pybuild base:385: /usr/bin/python3 setup.py build
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sqlreduce/build/sqlreduce
copying sqlreduce/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sqlreduce/build/sqlreduce
copying sqlreduce/main.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sqlreduce/build/sqlreduce
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
pg_virtualenv dh_auto_test
Creating new PostgreSQL cluster 18/regress ...
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sqlreduce/build; python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.14, pytest-9.1.1, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sqlreduce/build
configfile: pyproject.toml
plugins: typeguard-4.4.4
collected 3 items

tests/test_sqlreduce.py ..F                                              [100%]

=================================== FAILURES ===================================

                         ^^^^^^^^^^^^^^^^

tests/test_sqlreduce.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sqlreduce/__init__.py:1148: in run_reduce
    reduce_loop(state)
sqlreduce/__init__.py:1098: in reduce_loop
    if reduce_step(state, path):
       ^^^^^^^^^^^^^^^^^^^^^^^^
sqlreduce/__init__.py:1050: in reduce_step
    if getattr_path(state['parsetree'], path+[attr]) is not None:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlreduce/__init__.py:16: in getattr_path
    return getattr_path(obj[path[0]], path[1:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlreduce/__init__.py:18: in getattr_path
    return getattr_path(getattr(obj, path[0]), path[1:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

obj = <DeleteStmt relation=<RangeVar relname='foo' inh=True relpersistence='p'>>
path = ['returningList']

    def getattr_path(obj, path):
        if path == []:
            return obj
        if type(path[0]) == int:
            return getattr_path(obj[path[0]], path[1:])
        else:
sqlreduce/__init__.py:18: AttributeError
----------------------------- Captured stdout call -----------------------------
A_ArrayExpr:
  test: select array[2, foo]
   got: SELECT foo
A_Const:
  test: select '1,1'::point = '1,1'
   got: SELECT CAST(NULL AS point) = NULL
A_Expr:
  test: select 1 + moo
   got: SELECT moo
  test: select foo between 2 and 3
   got: SELECT foo
  test: select 1 between moo and 3
   got: SELECT moo
  test: select 1 between 2 and bar
   got: SELECT bar
A_Indirection:
  test: select foo[2]
   got: SELECT foo
  test: select (select array[1])[foo]
   got: SELECT (SELECT ARRAY[NULL])[foo]
AlterPolicyStmt:
  test: alter policy moo on bar using (true)
   got: ALTER POLICY moo ON bar USING (NULL)
BoolExpr:
  test: select moo and foo
   got: SELECT moo
  test: select true and (foo or false)
   got: SELECT foo
  test: select set_config('a.b', 'blub', true) = 'blub' and set_config('work_mem', current_setting('a.b'), true) = '' and true
   got: SELECT set_config('a.b', 'blub', NULL) = 'blub' AND set_config('work_mem', current_setting('a.b'), NULL) = ''
BooleanTest:
  test: select foo is true
   got: SELECT foo
CallStmt:
  test: call foo()
   got: CALL foo()
  test: call foo(bar + 1)
   got: CALL foo(bar)
CaseExpr:
  test: select case foo when 1 then 2 else bar end
   got: SELECT foo
  test: select case when moo then 1 else bar end
   got: SELECT moo
  test: select case when true then foo end
   got: SELECT foo
  test: select case when true then 1 else bar end
   got: SELECT bar
CaseWhen:
  test: select case when bar then 1 else 2 end
   got: SELECT bar
ClusterStmt:
  test: cluster foo
   got: CLUSTER foo
CoalesceExpr:
  test: select coalesce(1, bar)
   got: SELECT bar
  test: select coalesce(1, '', 2)
   got: SELECT COALESCE('', 2)
ColumnRef:
  test: select 'foo'
   got: SELECT
CommonTableExpr:
  test: with a as (select moo) select from a
   got: SELECT moo
  test: with recursive a(a) as (select 5 union select 1 from a) cycle a set is_cycle using path, b(b) as (select null) select a = b from a, b
   got: WITH a(a) AS (SELECT NULL UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM a, b
CopyStmt:
  test: copy (select foo) to 'bla'
   got: SELECT foo
  test: create table foo (id int); copy foo from stdin
   got: CREATE TABLE foo (id integer); COPY foo FROM STDIN
CreatePolicyStmt:
  test: create policy foo ON bar for select using (moo % 2 = 0)
   got: CREATE POLICY foo ON bar AS PERMISSIVE FOR select TO PUBLIC USING (NULL)
CreateSchemaStmt:
  test: create schema foo create table bar1 partition of moo for values in (1) create table bar2 partition of moo for values in (2)
   got: CREATE SCHEMA foo CREATE TABLE bar2 PARTITION OF moo  FOR VALUES IN (2)
CreateStmt:
  test: create table foo (a int)
   got: CREATE TABLE foo (a integer)
  test: create table foo (id int) partition by list(id)
   got: CREATE TABLE foo (id integer)
CreateTableAsStmt:
  test: create table foo as select 1, moo
   got: SELECT moo
  test: create table foo as select 1, 2
   got: CREATE TABLE foo AS SELECT NULL, NULL
DeclareCursorStmt:
  test: declare foo cursor for select bar
   got: SELECT bar
DeleteStmt:
  test: delete from foo where bar
=========================== short test summary info ============================
FAILED tests/test_sqlreduce.py::test_rules - AttributeError: 'DeleteStmt' obj...
========================= 1 failed, 2 passed in 2.50s ==========================
E: pybuild pybuild:485: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sqlreduce/build; python3.13 -m pytest tests
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sqlreduce/build; python3.14 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.14.6, pytest-9.1.1, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sqlreduce/build
configfile: pyproject.toml
plugins: typeguard-4.4.4
collected 3 items

tests/test_sqlreduce.py ..F                                              [100%]

=================================== FAILURES ===================================
                         ^^^^^^^^^^^^^^^^

tests/test_sqlreduce.py:55:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
sqlreduce/__init__.py:1148: in run_reduce
    reduce_loop(state)
sqlreduce/__init__.py:1098: in reduce_loop
    if reduce_step(state, path):
       ^^^^^^^^^^^^^^^^^^^^^^^^
sqlreduce/__init__.py:1050: in reduce_step
    if getattr_path(state['parsetree'], path+[attr]) is not None:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlreduce/__init__.py:16: in getattr_path
    return getattr_path(obj[path[0]], path[1:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sqlreduce/__init__.py:18: in getattr_path
    return getattr_path(getattr(obj, path[0]), path[1:])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

obj = <DeleteStmt relation=<RangeVar relname='foo' inh=True relpersistence='p'>>
path = ['returningList']

    def getattr_path(obj, path):
        if path == []:
            return obj
        if type(path[0]) == int:
            return getattr_path(obj[path[0]], path[1:])
        else:
sqlreduce/__init__.py:18: AttributeError
----------------------------- Captured stdout call -----------------------------
A_ArrayExpr:
  test: select array[2, foo]
   got: SELECT foo
A_Const:
  test: select '1,1'::point = '1,1'
   got: SELECT CAST(NULL AS point) = NULL
A_Expr:
  test: select 1 + moo
   got: SELECT moo
  test: select foo between 2 and 3
   got: SELECT foo
  test: select 1 between moo and 3
   got: SELECT moo
  test: select 1 between 2 and bar
   got: SELECT bar
A_Indirection:
  test: select foo[2]
   got: SELECT foo
  test: select (select array[1])[foo]
   got: SELECT (SELECT ARRAY[NULL])[foo]
AlterPolicyStmt:
  test: alter policy moo on bar using (true)
   got: ALTER POLICY moo ON bar USING (NULL)
BoolExpr:
  test: select moo and foo
   got: SELECT moo
  test: select true and (foo or false)
   got: SELECT foo
  test: select set_config('a.b', 'blub', true) = 'blub' and set_config('work_mem', current_setting('a.b'), true) = '' and true
   got: SELECT set_config('a.b', 'blub', NULL) = 'blub' AND set_config('work_mem', current_setting('a.b'), NULL) = ''
BooleanTest:
  test: select foo is true
   got: SELECT foo
CallStmt:
  test: call foo()
   got: CALL foo()
  test: call foo(bar + 1)
   got: CALL foo(bar)
CaseExpr:
  test: select case foo when 1 then 2 else bar end
   got: SELECT foo
  test: select case when moo then 1 else bar end
   got: SELECT moo
  test: select case when true then foo end
   got: SELECT foo
  test: select case when true then 1 else bar end
   got: SELECT bar
CaseWhen:
  test: select case when bar then 1 else 2 end
   got: SELECT bar
ClusterStmt:
  test: cluster foo
   got: CLUSTER foo
CoalesceExpr:
  test: select coalesce(1, bar)
   got: SELECT bar
  test: select coalesce(1, '', 2)
   got: SELECT COALESCE('', 2)
ColumnRef:
  test: select 'foo'
   got: SELECT
CommonTableExpr:
  test: with a as (select moo) select from a
   got: SELECT moo
  test: with recursive a(a) as (select 5 union select 1 from a) cycle a set is_cycle using path, b(b) as (select null) select a = b from a, b
   got: WITH a(a) AS (SELECT NULL UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM a, b
CopyStmt:
  test: copy (select foo) to 'bla'
   got: SELECT foo
  test: create table foo (id int); copy foo from stdin
   got: CREATE TABLE foo (id integer); COPY foo FROM STDIN
CreatePolicyStmt:
  test: create policy foo ON bar for select using (moo % 2 = 0)
   got: CREATE POLICY foo ON bar AS PERMISSIVE FOR select TO PUBLIC USING (NULL)
CreateSchemaStmt:
  test: create schema foo create table bar1 partition of moo for values in (1) create table bar2 partition of moo for values in (2)
   got: CREATE SCHEMA foo CREATE TABLE bar2 PARTITION OF moo  FOR VALUES IN (2)
CreateStmt:
  test: create table foo (a int)
   got: CREATE TABLE foo (a integer)
  test: create table foo (id int) partition by list(id)
   got: CREATE TABLE foo (id integer)
CreateTableAsStmt:
  test: create table foo as select 1, moo
   got: SELECT moo
  test: create table foo as select 1, 2
   got: CREATE TABLE foo AS SELECT NULL, NULL
DeclareCursorStmt:
  test: declare foo cursor for select bar
   got: SELECT bar
DeleteStmt:
  test: delete from foo where bar
=========================== short test summary info ============================
FAILED tests/test_sqlreduce.py::test_rules - AttributeError: 'DeleteStmt' obj...
========================= 1 failed, 2 passed in 2.43s ==========================
E: pybuild pybuild:485: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sqlreduce/build; python3.14 -m pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 3.14" --parallel=2 returned exit code 13
*** /tmp/pg_virtualenv.AIJlAD/log/postgresql-18-regress.log (last 100 lines) ***
2026-08-01 20:55:31.948 UTC [828] sbuild@postgres STATEMENT:  WITH RECURSIVE a(a) AS (SELECT NULL UNION SELECT 1 FROM a), b(b) AS (SELECT NULL) SELECT a = b FROM a, b
2026-08-01 20:55:31.955 UTC [829] sbuild@postgres ERROR:  each UNION query must have the same number of columns
2026-08-01 20:55:31.955 UTC [829] sbuild@postgres STATEMENT:  WITH RECURSIVE a(a) AS (SELECT 5 UNION SELECT FROM a), b(b) AS (SELECT NULL) SELECT a = b FROM a, b
2026-08-01 20:55:31.963 UTC [830] sbuild@postgres ERROR:  operator does not exist: integer = text at character 82
2026-08-01 20:55:31.963 UTC [830] sbuild@postgres HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.
2026-08-01 20:55:31.963 UTC [830] sbuild@postgres STATEMENT:  WITH RECURSIVE a(a) AS (SELECT 5 UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM a, b
2026-08-01 20:55:31.975 UTC [832] sbuild@postgres ERROR:  column "a" does not exist at character 80
2026-08-01 20:55:31.975 UTC [832] sbuild@postgres STATEMENT:  WITH RECURSIVE a(a) AS (SELECT 5 UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b
2026-08-01 20:55:32.013 UTC [838] sbuild@postgres ERROR:  column "a" does not exist at character 80
2026-08-01 20:55:32.013 UTC [838] sbuild@postgres STATEMENT:  WITH RECURSIVE a(a) AS (SELECT 5 UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM b
2026-08-01 20:55:32.020 UTC [839] sbuild@postgres ERROR:  column "b" does not exist at character 84
2026-08-01 20:55:32.020 UTC [839] sbuild@postgres STATEMENT:  WITH RECURSIVE a(a) AS (SELECT 5 UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM a
2026-08-01 20:55:32.027 UTC [840] sbuild@postgres ERROR:  operator does not exist: integer = text at character 72
2026-08-01 20:55:32.027 UTC [840] sbuild@postgres HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.
2026-08-01 20:55:32.027 UTC [840] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT 5 UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM a, b
2026-08-01 20:55:32.038 UTC [842] sbuild@postgres ERROR:  column "a" does not exist at character 70
2026-08-01 20:55:32.038 UTC [842] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT 5 UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b
2026-08-01 20:55:32.075 UTC [848] sbuild@postgres ERROR:  column "a" does not exist at character 70
2026-08-01 20:55:32.075 UTC [848] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT 5 UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM b
2026-08-01 20:55:32.082 UTC [849] sbuild@postgres ERROR:  column "b" does not exist at character 74
2026-08-01 20:55:32.082 UTC [849] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT 5 UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM a
2026-08-01 20:55:32.089 UTC [850] sbuild@postgres ERROR:  relation "a" does not exist at character 46
2026-08-01 20:55:32.089 UTC [850] sbuild@postgres STATEMENT:  WITH b(b) AS (SELECT NULL) SELECT a = b FROM a, b
2026-08-01 20:55:32.096 UTC [851] sbuild@postgres ERROR:  relation "b" does not exist at character 61
2026-08-01 20:55:32.096 UTC [851] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT 5 UNION SELECT 1) SELECT a = b FROM a, b
2026-08-01 20:55:32.121 UTC [854] sbuild@postgres ERROR:  each UNION query must have the same number of columns at character 35
2026-08-01 20:55:32.121 UTC [854] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM a, b
2026-08-01 20:55:32.128 UTC [855] sbuild@postgres ERROR:  operator does not exist: integer = text at character 75
2026-08-01 20:55:32.128 UTC [855] sbuild@postgres HINT:  No operator matches the given name and argument types. You might need to add explicit type casts.
2026-08-01 20:55:32.128 UTC [855] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT NULL UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM a, b
2026-08-01 20:55:32.140 UTC [857] sbuild@postgres ERROR:  column "a" does not exist at character 73
2026-08-01 20:55:32.140 UTC [857] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT NULL UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b
2026-08-01 20:55:32.177 UTC [863] sbuild@postgres ERROR:  column "a" does not exist at character 73
2026-08-01 20:55:32.177 UTC [863] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT NULL UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM b
2026-08-01 20:55:32.183 UTC [864] sbuild@postgres ERROR:  column "b" does not exist at character 77
2026-08-01 20:55:32.183 UTC [864] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT NULL UNION SELECT 1), b(b) AS (SELECT NULL) SELECT a = b FROM a
2026-08-01 20:55:32.192 UTC [865] sbuild@postgres ERROR:  relation "b" does not exist at character 64
2026-08-01 20:55:32.192 UTC [865] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT NULL UNION SELECT 1) SELECT a = b FROM a, b
2026-08-01 20:55:32.222 UTC [868] sbuild@postgres ERROR:  each UNION query must have the same number of columns
2026-08-01 20:55:32.222 UTC [868] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT NULL UNION SELECT), b(b) AS (SELECT NULL) SELECT a = b FROM a, b
2026-08-01 20:55:32.240 UTC [870] sbuild@postgres ERROR:  WITH query "b" has 0 columns available but 1 columns specified at character 44
2026-08-01 20:55:32.240 UTC [870] sbuild@postgres STATEMENT:  WITH a(a) AS (SELECT NULL UNION SELECT 1), b(b) AS (SELECT) SELECT a = b FROM a, b
2026-08-01 20:55:32.247 UTC [871] sbuild@postgres ERROR:  column "foo" does not exist at character 14
2026-08-01 20:55:32.247 UTC [871] sbuild@postgres STATEMENT:  copy (select foo) to 'bla'
2026-08-01 20:55:32.252 UTC [872] sbuild@postgres ERROR:  column "foo" does not exist at character 14
2026-08-01 20:55:32.252 UTC [872] sbuild@postgres STATEMENT:  COPY (SELECT foo) TO 'bla'
2026-08-01 20:55:32.257 UTC [873] sbuild@postgres ERROR:  column "foo" does not exist at character 8
2026-08-01 20:55:32.257 UTC [873] sbuild@postgres STATEMENT:  SELECT foo
2026-08-01 20:55:32.273 UTC [876] sbuild@postgres ERROR:  unexpected message type 0x58 during COPY from stdin
2026-08-01 20:55:32.273 UTC [876] sbuild@postgres CONTEXT:  COPY foo, line 1
2026-08-01 20:55:32.273 UTC [876] sbuild@postgres STATEMENT:  create table foo (id int); copy foo from stdin
2026-08-01 20:55:32.273 UTC [876] sbuild@postgres FATAL:  terminating connection because protocol synchronization was lost
2026-08-01 20:55:32.273 UTC [876] sbuild@postgres LOG:  could not send data to client: Broken pipe
2026-08-01 20:55:32.278 UTC [877] sbuild@postgres ERROR:  unexpected message type 0x58 during COPY from stdin
2026-08-01 20:55:32.278 UTC [877] sbuild@postgres CONTEXT:  COPY foo, line 1
2026-08-01 20:55:32.278 UTC [877] sbuild@postgres STATEMENT:  CREATE TABLE foo (id integer); COPY foo FROM STDIN
2026-08-01 20:55:32.278 UTC [877] sbuild@postgres FATAL:  terminating connection because protocol synchronization was lost
2026-08-01 20:55:32.278 UTC [877] sbuild@postgres LOG:  could not send data to client: Broken pipe
2026-08-01 20:55:32.282 UTC [878] sbuild@postgres ERROR:  relation "foo" does not exist
2026-08-01 20:55:32.282 UTC [878] sbuild@postgres STATEMENT:  COPY foo FROM STDIN
2026-08-01 20:55:32.293 UTC [880] sbuild@postgres ERROR:  relation "bar" does not exist
2026-08-01 20:55:32.293 UTC [880] sbuild@postgres STATEMENT:  create policy foo ON bar for select using (moo % 2 = 0)
2026-08-01 20:55:32.297 UTC [881] sbuild@postgres ERROR:  relation "bar" does not exist
2026-08-01 20:55:32.297 UTC [881] sbuild@postgres STATEMENT:  CREATE POLICY foo ON bar AS PERMISSIVE FOR select TO PUBLIC USING ((moo % 2) = 0)
2026-08-01 20:55:32.303 UTC [882] sbuild@postgres ERROR:  relation "bar" does not exist
2026-08-01 20:55:32.303 UTC [882] sbuild@postgres STATEMENT:  CREATE POLICY foo ON bar AS PERMISSIVE FOR select TO PUBLIC USING (NULL)
2026-08-01 20:55:32.308 UTC [883] sbuild@postgres ERROR:  relation "moo" does not exist
2026-08-01 20:55:32.308 UTC [883] sbuild@postgres STATEMENT:  create schema foo create table bar1 partition of moo for values in (1) create table bar2 partition of moo for values in (2)
2026-08-01 20:55:32.313 UTC [884] sbuild@postgres ERROR:  relation "moo" does not exist
2026-08-01 20:55:32.313 UTC [884] sbuild@postgres STATEMENT:  CREATE SCHEMA foo CREATE TABLE bar1 PARTITION OF moo  FOR VALUES IN (1) CREATE TABLE bar2 PARTITION OF moo  FOR VALUES IN (2)
2026-08-01 20:55:32.318 UTC [885] sbuild@postgres ERROR:  relation "moo" does not exist
2026-08-01 20:55:32.318 UTC [885] sbuild@postgres STATEMENT:  CREATE SCHEMA foo CREATE TABLE bar2 PARTITION OF moo  FOR VALUES IN (2)
2026-08-01 20:55:32.350 UTC [891] sbuild@postgres ERROR:  column "moo" does not exist at character 31
2026-08-01 20:55:32.350 UTC [891] sbuild@postgres STATEMENT:  create table foo as select 1, moo
2026-08-01 20:55:32.354 UTC [892] sbuild@postgres ERROR:  column "moo" does not exist at character 31
2026-08-01 20:55:32.354 UTC [892] sbuild@postgres STATEMENT:  CREATE TABLE foo AS SELECT 1, moo
2026-08-01 20:55:32.359 UTC [893] sbuild@postgres ERROR:  column "moo" does not exist at character 11
2026-08-01 20:55:32.359 UTC [893] sbuild@postgres STATEMENT:  SELECT 1, moo
2026-08-01 20:55:32.369 UTC [895] sbuild@postgres ERROR:  column "moo" does not exist at character 8
2026-08-01 20:55:32.369 UTC [895] sbuild@postgres STATEMENT:  SELECT moo
2026-08-01 20:55:32.379 UTC [897] sbuild@postgres ERROR:  column "?column?" specified more than once
2026-08-01 20:55:32.379 UTC [897] sbuild@postgres STATEMENT:  create table foo as select 1, 2
2026-08-01 20:55:32.384 UTC [898] sbuild@postgres ERROR:  column "?column?" specified more than once
2026-08-01 20:55:32.384 UTC [898] sbuild@postgres STATEMENT:  CREATE TABLE foo AS SELECT 1, 2
2026-08-01 20:55:32.411 UTC [903] sbuild@postgres ERROR:  column "?column?" specified more than once
2026-08-01 20:55:32.411 UTC [903] sbuild@postgres STATEMENT:  CREATE TABLE foo AS SELECT NULL, 2
2026-08-01 20:55:32.428 UTC [906] sbuild@postgres ERROR:  column "?column?" specified more than once
2026-08-01 20:55:32.428 UTC [906] sbuild@postgres STATEMENT:  CREATE TABLE foo AS SELECT NULL, NULL
2026-08-01 20:55:32.440 UTC [908] sbuild@postgres ERROR:  column "bar" does not exist at character 31
2026-08-01 20:55:32.440 UTC [908] sbuild@postgres STATEMENT:  declare foo cursor for select bar
2026-08-01 20:55:32.445 UTC [909] sbuild@postgres ERROR:  column "bar" does not exist at character 31
2026-08-01 20:55:32.445 UTC [909] sbuild@postgres STATEMENT:  DECLARE foo CURSOR FOR SELECT bar
2026-08-01 20:55:32.450 UTC [910] sbuild@postgres ERROR:  column "bar" does not exist at character 8
2026-08-01 20:55:32.450 UTC [910] sbuild@postgres STATEMENT:  SELECT bar
2026-08-01 20:55:32.464 UTC [913] sbuild@postgres ERROR:  relation "foo" does not exist at character 13
2026-08-01 20:55:32.464 UTC [913] sbuild@postgres STATEMENT:  delete from foo where bar
2026-08-01 20:55:32.469 UTC [914] sbuild@postgres ERROR:  relation "foo" does not exist at character 13
2026-08-01 20:55:32.469 UTC [914] sbuild@postgres STATEMENT:  DELETE FROM foo WHERE bar
2026-08-01 20:55:32.474 UTC [915] sbuild@postgres ERROR:  relation "foo" does not exist at character 13
2026-08-01 20:55:32.474 UTC [915] sbuild@postgres STATEMENT:  DELETE FROM foo
Dropping cluster 18/regress ...
make[1]: *** [debian/rules:8: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:21: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1143422#10
Date:
2026-08-02 19:19:21 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
sqlreduce, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1143422@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Christoph Berg <myon@debian.org> (supplier of updated sqlreduce package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 02 Aug 2026 20:47:59 +0200
Source: sqlreduce
Architecture: source
Version: 1.5-1
Distribution: unstable
Urgency: medium
Maintainer: Christoph Berg <myon@debian.org>
Changed-By: Christoph Berg <myon@debian.org>
Closes: 1143422
Changes:
 sqlreduce (1.5-1) unstable; urgency=medium
 .
   * pglast 8 switches from returningList to returningClause. Follow suit.
     (Closes: #1143422)
Checksums-Sha1:
 ed915976d6b7f85959249c70a3b76bd8a879c459 2046 sqlreduce_1.5-1.dsc
 5d2a6851cb191d47d81143b238bcffc78c44e0dd 12007660 sqlreduce_1.5.orig.tar.gz
 f160cf28771e9f6a9586dbcc2647f2bb5e3f4556 2424 sqlreduce_1.5-1.debian.tar.xz
Checksums-Sha256:
 77726acd87cd294c246bdfce453a5dd50fe5b484d25153a6524e0c73e9177247 2046 sqlreduce_1.5-1.dsc
 e26e819d6c74427854f6d81eb0b9d6111004cafc7128618dee86a7c9ae56e2c1 12007660 sqlreduce_1.5.orig.tar.gz
 e4d2fccb9a0908b5f83b80b77aad1dea9e769d0aa1e33f6ba462494fabb37edc 2424 sqlreduce_1.5-1.debian.tar.xz
Files:
 7ddb749fa43c23834dde938808b38241 2046 python optional sqlreduce_1.5-1.dsc
 68075713a49af42ecb49d90f2c374fa3 12007660 python optional sqlreduce_1.5.orig.tar.gz
 009c8d980b66d66d5abef9e17c3fc331 2424 python optional sqlreduce_1.5-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEXEj+YVf0kXlZcIfGTFprqxLSp64FAmpvlV4ACgkQTFprqxLS
p64EwQ/9GID/bk/gu4cq1Rb5zmK3ekfeIUYIWRcUyds2eQUNfZabLKWkyNELUYCs
ApzLqyE8CGH8m0mAqLMqjdw3VpnS20uxarR3Rr5PEyPmZ7fFPckD6SBjRB+ogOOM
KiQA+R87dOml6XEK7yaivP4zYh51Fg6vSepEYYterehw+77CYsihgkg5bJ5pcc0X
5i46ftkOi/BZhmqtydQWCtQvytjL1W1m3LNV9T04RGChcvrPW0cc0R2vcMxL2yN/
AiB/IW8KoP7Bfy5YSRa+X5LX5Z6z0k/St0wGL8bV1A70NrOuksqwnxaCgMMqq0+D
lBZEO6sjVH6BuwJv1ZiWKYXWA+dbYJ/BLz3+zdqaoRZoFCmIxY5MuYpkjREsuifG
GD2+uFUrtIpWQ3+NymTYbX1ItR9tabI6uSlPSYtCFlwBrDV9JX0ec47/D2uIeAnM
BJGSd0qSdVKaTkl9Wp/pqitapFUuQybJp4nJkhyQcz/Ewv5VH9HYq9Vurko1zwjg
ENTNZJVZf77rnJlYIwVohoaXv2abs5t3dMNxoLfYD2Vgx0NYYrkqZib/nQy52oTc
rTmVhxlIe4gQPNgpOZcNo+vChhD+R7rylv/J204gQ+ux3D6o8krr25jfgfsrkrbu
08+yTX38oaWaLuMF5mU2GUqhNSuw4aFu5v/7pna37225QZB8PvQ=
=tjut
-----END PGP SIGNATURE-----