Handle sequences in preprocess_pubobj_list
authorTomas Vondra <tomas.vondra@postgresql.org>
Fri, 25 Mar 2022 13:29:56 +0000 (14:29 +0100)
committerTomas Vondra <tomas.vondra@postgresql.org>
Fri, 25 Mar 2022 13:29:56 +0000 (14:29 +0100)
commit002c9dd97a0c874fd1693a570383e2dd38cd40d5
tree012ceb7d097b206fc4d4de01c991d2b6e8ba6874
parent2d2232933b02d9396113662e44dca5f120d6830e
Handle sequences in preprocess_pubobj_list

Commit 75b1521dae added support for logical replication of sequences,
including grammar changes, but it did not update preprocess_pubobj_list
accordingly. This can cause segfaults with "continuations", i.e. when
command specifies a list of objects:

  CREATE PUBLICATION p FOR SEQUENCE s1, s2;

Reported by Amit Kapila, patch by me.

Reported-by: Amit Kapila
Discussion: https://postgr.es/m/CAA4eK1JxDNKGBSNTyN-Xj2JRjzFo+ziSqJbjH==vuO0YF_CQrg@mail.gmail.com
src/backend/parser/gram.y
src/test/regress/expected/publication.out
src/test/regress/sql/publication.sql