Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w7peA-005joI-2I for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 07:05:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7pe9-00FXti-0R for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 07:05:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w7pe8-00FXtV-2l for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 07:05:49 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w7pe7-0000000269f-1Rhu for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 07:05:48 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-c742b9b7727so234198a12.0 for ; Wed, 01 Apr 2026 00:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775027146; cv=none; d=google.com; s=arc-20240605; b=jXBo2fX/5gUbSuwEGdZbGUJseVOMqQLlWPXnpSl4ry/MV+YanTodpLdPjNEiLQa4uD DzARsokvGA7lVfaWulDL0+j4B1cnCCS8WslWJlrOYaVuUbcA4EAX7tEh2nnlUP9fyHQh CFZrypYEYP/RoUNvAtRVshLy3DDigLeh3x9Y+iUHsa/TVxu3p/Os55iRvpu71cRqa2VY VcVG7rxcJ/UmPKNWYb9c2SyN0iPLuTiYdv/Aw6A8i3Xoy1zkKm/cjCvKWObdyxfah2XW KeJaZTo3MS3j4DjT2RzzxtfBtCBtbA2YXt/jqWlLp++3WREF5AqHkq9OVzRnTR5FXKNR 2E9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LT44YEqsR3k2T74tPEmQo/xaxWn8SKjzFkkycsbsL5g=; fh=KcfTCw2ZVqAV+lTGR3KRT9q1CRnyXcs7hTtvM0Hb+1I=; b=Zu/XkfQk9fGeirTwHBb/iu2pq56x4KiXBORWuf7Y5t0dxC4uMko+tVba5hm08DZ3Vc V0d1jvJTfbeNA0q5Dlxe6F9VCXFbhT5MSuj3fSn2tMKfbf56I6WJQdcVk2nM545HHQ3y XPUDdfOo8lPlam+152BWfHdYN/DAGCODLovj1x80QmjHcvfO/lVKBbkWiOy6SgbKdpRT /zr0LJbw6NjINFNempvBaLZxH2Yv/LJZwoIyTpYMRfeL8iASoXtkFXktjfQE7ZNx6sO0 c5MWtmnSSNrOhrIyK3yq8ydTRmYX6WADJzqtg9AFl7YCR6j44FFkR1Ebp9eXMXU5hLhk ZQAw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775027146; x=1775631946; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LT44YEqsR3k2T74tPEmQo/xaxWn8SKjzFkkycsbsL5g=; b=NaPh//P4g8k2f6BOghNkUPcx6xyWB11TmYnAFl2/zcajnjVw/9ZzwSPpY/H6k/PqQH MbHFUfOS6ShfFz9n0F3uS5YzyHh9OvfaE1odELnmMkukZJkwiVT58pYZoiiaLQCe3C8t sqJFdHXfHruukenp2i1AJGAXm4u3MLcLEvdL3E90dzUtEgVpH2eewpGJJ7kxzeYWhKYv IBldzBmxT1tEez50xWI7c47L10EYea5LzAuTmTplBqW/2Ys9AJ9NcQLT2MOHswkSom+0 pL14Z9Ruu/f5l4zR/C6dWCUwvSfiQvk3zuU0VVMsurqlYn048jcaqVfX0qbnnk1LQz+v vH0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775027146; x=1775631946; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=LT44YEqsR3k2T74tPEmQo/xaxWn8SKjzFkkycsbsL5g=; b=DyrP3FBpgroLu/Nr3mmE50WeQOr9rj20zB9SIoQDThi/7IDTD66UGOPoorf3BzlmoU O8b8iZTGeIC1qh4Tt6x8kgLNfbFoy1n20ylt0u42GK9csHS2TXtEIdwK1+3+6GlvajOd 2qVfSm1ILJOiU+vQWu1IbZh2NTe2pRgMM5vjbXLTy4siSnc5k0BZgugljP0YsS9OT/T2 oTRgJaOIUVE6OfnJvKXxa6l5DoZQuoe5LcNAq2Nq2kfNCOP0YqJI3yCjnoFZnwgC0lpD QZwE0RMy5zAPO3ZsUzcwxOepBbPEoFKDcXA2n2tHka115/eI58/ZK25F0K/t0rrnScwX rRUA== X-Gm-Message-State: AOJu0YysMS/yGGqkgRHTNlubM94Yee3g+X4aV35Z95OdHCIxqDt83kHz CU2kjPvYQBjrZ3uZqhRh5KYooHfcC/qOKaUS+BdrQFBq4I/Ssq0QjoopacET79C5+Lu3DCSZnlG 0RduKCakuRH9ppPlZ9WkM/k64mmjEkf8= X-Gm-Gg: ATEYQzwaEDZN8kD12yO1uOM7/jC/nXNQvNOKvFNEoMUTptxIZgzxpV4L0GUXvPShE7u Fdzaatff57HIVKXc2NNr+EXSdGZRhfT32zP6vhPVs56vrN57+SQoSG6l6suk3BEoI/SDQzei7wP pJHi13RKkkV16APUgMVbXOBmpXoUKwCr2DcnhOdjI87lCVo/4aYYdh3cPhnG+kmP3cdGRl8l5zI /zwyopd9G+i2+o/QFGAo4DWkS6hIy0nuDLZY9Vq8gHzBcKinT5eTtpC9fnRa01KKyAUCX8xBtKT CkP4MvYpRBJbraiy4szbjjBtTfv2+uKIonQY1+GoYfUCuoZ0w02JjCIZuEcs2Mjp X-Received: by 2002:a05:6a21:3285:b0:37c:b74c:d8c7 with SMTP id adf61e73a8af0-39edbf0853bmr6543649637.22.1775027146128; Wed, 01 Apr 2026 00:05:46 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: shveta malik Date: Wed, 1 Apr 2026 12:35:34 +0530 X-Gm-Features: AQROBzD-ONpSezOa6RM1GDp3BVeUoKMKxtxLLopBncFvtp9XiZ-3QZ9hn_FS8eQ Message-ID: Subject: Re: DOC: pg_publication_rel.prrelid says sequences are possible To: Peter Smith Cc: PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Apr 1, 2026 at 10:30=E2=80=AFAM Peter Smith = wrote: > > Hi. > > It is my understanding that only tables can exist in the > 'pg_publication_rel' catalog. > > e.g. only for these scenarios: > * included tables - when pg_publication.puballtables is false, these > are the specified FOR TABLE ... tables > * excluded tables - when pg_publication.puballtables is true, these > are the specified FOR ALL TABLES EXCEPT (TABLE ...) tables > > In particular, AFAIK there is no way for sequences to be in the > 'pg_publication_rel' catalog. e.g. > PG19 only supports "CREATE PUBLICATION ... FOR ALL SEQUENCES", which > is indicated by pg_publication.puballsequences. > PG19 has no support for "CREATE PUBLICATION ... FOR SEQUENCE seq1,seq2". > > ~~ > > Meanwhile, the DOCS page for 'pg_publication_rel' catalog [1] since > commit 55cefad says that sequences are also possible [2]: > ------ > prrelid oid (references pg_class.oid) > Reference to table or sequence > ------ > > How are sequences possible? PSA a patch to correct it. > > Or, am I mistaken here? > You are right, pg_publication_rel can never have a seq entry while pg_subscription_rel can have. The patch LGTM. thanks Shveta