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 1wd2JQ-003qAU-1x for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jun 2026 08:53:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wd2JO-00A01J-1L for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jun 2026 08:53:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wd2JO-00A01B-0K for pgsql-hackers@lists.postgresql.org; Fri, 26 Jun 2026 08:53:22 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wd2JL-00000000KqY-1omE for pgsql-hackers@lists.postgresql.org; Fri, 26 Jun 2026 08:53:21 +0000 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-37e0035aad3so339282a91.3 for ; Fri, 26 Jun 2026 01:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782463997; cv=none; d=google.com; s=arc-20260327; b=Q29Q41zi5sxOb9jvochsmHDD1dl71FXootL6iW48JPWMHhyRShGwMtmMuSA7pw749M W7sLO+G1kxXs+UYnVLTzkAdW6oJgCJ69fjZOkNR/vdKPNqLzSVhdKUQkdPPk3P/cn8yA EgLTBeXfafwQe/miFanGYG/bCYlD1EQr4+TCbTbF1KahQLeW86qXSrc/u6fwXButBmM+ mSpA5RWJVnrLb8Cl1gzgtZ1G7jmBYB/B04F6w3cmUnMFkh5IpDCCudf13vdBMeIMiGM/ 1Q3/46CsEjKDkakj3tV++pGN/F9vPIAcFitpLmh7hB5uh+A+5Tkk2H50KzpheaxNnQWS MMeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=Vy3h8AB5yH4CyCN8dHUxVGHd3HW8Xy2MVtmv24SibPY=; fh=XKoo27GH5xrhjk/lipDJ1FvydDMPLtIbGYxjMnY3DWc=; b=kItLQ8UAjE1yaon+76VzAp1kQDpGub0CoPsp2TNrBPFqaAFwK4TiGXnslw+qye04RL OPRMyd0MfROlHuLRnJ0nHPNxX98HrReTl6xdU8NHdSQcmCQJ/kXuMXOIqj9D4euvmHEj qUwsR4Cq+LBuKulI030bzFyUnKRwNnP83OLfo310n9M8WfOU5dqRmThUS2b9qP7QPoH7 7r3qGVpBluIwU8cvKBHv9vF0Ssat0u+Ez5McF3aaJOw0bV83UPiQM9mSIs9aZ6+Qr8Ol mv3MI8WppLwLpFk0JKG2Oqj1DRuiBeWRBspqxcwiI40EUA/zrbSEhUWsd/Ubb3mWdQRI uNGQ==; 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=1782463997; x=1783068797; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Vy3h8AB5yH4CyCN8dHUxVGHd3HW8Xy2MVtmv24SibPY=; b=YES8Hg9VUycmeD+Rw1hL7MnboVPxxhhwCjn7b0o5BSIwBPE59RYq077vSaorSE77t/ M7nkGOy6GCFidvi0oMIodyG8SRvfqs7Eg4hox4duc6fNSU0/FGTwZRK9LYXJnDdnEe7b 9qai9kTU2qMkWe8nuoaB8WQzKm+lmqukFVT+2e3FUY3o5jY+q4o/KUOzb3IXzNBBSzbv s+Onq0CbSLgxCHtVEO6pkYvjrAwg9EILNtxpf5ciDOE3uF93paZkzgjvtdjY5jMriV8S XSvQh+a9NXUV1KXhl+Vu2a8M060uAKL/DkFGKZrsy+/djxuQnmbMVyAHeGS0NJoecKCC FgBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782463997; x=1783068797; h=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=Vy3h8AB5yH4CyCN8dHUxVGHd3HW8Xy2MVtmv24SibPY=; b=WuM9rlxNZ1zbpNQxD1vUwOyVVL7ZozJjehDdENoDy0pL/IRuaS/XhySVO2kr3y45ie ayI6nhO+y9ylWehVXb4r8Y+LXPsoMfLaZ1iTD8celNMi6WrWfzmdKaqKJ9bvAZGwpMPA dw9ye+LqMA5JsBAmQBdc0uYyCxvN2SMeXJzlflM/Z8nOlQwsFvKm+LBCDTcgf2qkPVKZ dBC+L+ftxO2PgOqo1LuKzXnmyn6LrqvlOGHYxHegwZGAL6yAhQFlmUncSzoipL925nz9 ucG6rBzvFUHN1qOetIonDfRLBuqOdC2pWLiaHVONumvZ1Ai1tKhohfCRvja66A5WlUMR 0inQ== X-Forwarded-Encrypted: i=1; AHgh+RoIzVhCtKfoLwy59JtdD+MIJwS7TSI1hb3iKDn0tCErwQ1j3inspazs0gJ69pG2nh0rJmCWfjHoE4WXOJwD@lists.postgresql.org X-Gm-Message-State: AOJu0Yzc2NS44okz/C25ori/+i+L9n4k2ZAX0Aapx8RLKLiqmAQfWAM4 NPR0ZKGEKTmEHW7SJB3lS5Te3Eh71jr4TX68f/9+eVGq3ZFotxcde8ABvQdbBelT1gBTChiYmb0 NzLJrnC+T9+jhCzHpAJHWzYgwmlijoV4= X-Gm-Gg: AfdE7cn+2w1ZQqWqy+Gr9kcNWWWQoa/ftlojglgd4rgc36z8/nuIeDWtJNdSj3kjska 4xLhgxFtomWoT/zJCKpLnRIb99Prsr0K0fViJX0X78HryFCCuY2YgnWgcoF76NhQGwnu/llDg2V 8Qq6lpbfEDA6n73mqRXaN1l/ETog9LhnflKvOU9fcylpGAP3hla9ftW7+7M4o0bkYl/M/w2CZ+q 2VQfIzxKh4rokhpga3MEAB5g54hDnow5zDnuFEY7qwKA80ImfGzmgmVrt02Hq0oLEjtcbr4m/Du nl/Ev2GheHl6x3Z55k2pASd59cN9sPc7m46RHnnGpej5ZDWWBhraFRzClqhNkUfRjqfE6wnk2UW soUdmJe46 X-Received: by 2002:a17:90b:3dc4:b0:369:1dcf:4a46 with SMTP id 98e67ed59e1d1-37dfa29f8cbmr5679943a91.25.1782463997245; Fri, 26 Jun 2026 01:53:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: shveta malik Date: Fri, 26 Jun 2026 14:23:04 +0530 X-Gm-Features: AVVi8CfsubV6xDm8BtmIdE8fE9vVkE8lEI-GBD0U70t_rFU6Zo5_vhUdILqpzuE Message-ID: Subject: Re: Support EXCEPT for ALL SEQUENCES publications To: Shlok Kyal Cc: vignesh C , PostgreSQL Hackers , Peter Smith , shveta malik Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Please find a few trivial comments on v13-001: 1) check_publication_add_relation: + * 'pubrelkind' is the relkind accepted by the publication clause, + * while 'targetrelkind' is the relkind of the relation being added. pubrelkind is the argument while targetrelkind is not. We generally explain arguements here. Can we rephrase to: * 'pubrelkind' is the relkind accepted by the publication clause. * The relkind of relation in given 'pri' is checked for compatibility * against it. Error is emitted if they are not compatible. 2) describePublications: } - else + if (puballtables) { Now since else is converted to independent 'if' block we can add a blank line before it for better readability. Same for this: } + if (puballsequences) + { 3) We have each test header like below starting from begining of file: --------------------------------------------- -- Tests for inherited tables, and -- EXCEPT clause tests for inherited tables --------------------------------------------- --------------------------------------------- -- EXCEPT clause tests for partitioned tables --------------------------------------------- So we can convert ours too in above format so that it is more visible: +-- Test ALL SEQUENCES with EXCEPT clause 4) We can add these tests to sql file: a) SEQ keyword equivalent test to below table one: -- fail - first table in the EXCEPT list should use TABLE keyword CREATE PUBLICATION testpub_foralltables_excepttable2 FOR ALL TABLES EXCEPT (testpub_tbl1, testpub_tbl2); b) Try to add either of temporay or unlogged seq to except list. thanks Shveta