Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWiZ9-0002g6-1H for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Sep 2022 18:17:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oWiZ7-0006JQ-Ry for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Sep 2022 18:17:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWiZ6-0006JG-DQ for pgsql-hackers@lists.postgresql.org; Fri, 09 Sep 2022 18:17:21 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oWiZ1-0003lj-Oy for pgsql-hackers@postgresql.org; Fri, 09 Sep 2022 18:17:19 +0000 Received: by mail-pf1-x42e.google.com with SMTP id e5so2416494pfl.2 for ; Fri, 09 Sep 2022 11:17:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date; bh=pbxwJNlqvHKPGDlj9LPQ+DPrUXCym5V0lOscbhh2wDg=; b=DvZUcZ/5cY59pr/JJ4O+nYPsYbPgAtMaWBrn169EierzvSjTPLg1lCsMzSR2zk3/jE G1gnKNIsAmX0cRNpXIObfImgG7icgXtp1gA2/pphoHEqi3guQQL7+fcXj8+TVnIrpyrJ XVgiGTY+A7mfCYMIIEc8SnH0xFaBr6X/QBhZhFFuBCyf3T0v1M8xGZBVHqM63Ki51x8S 3rKdFYnR6zGBgd/OK2qR9I3fvtqKW9ChevUYUu2hpJPwjBsmU9WISdOlf0GzPnd0YKap +uXiP2d1cmJhzDCSR4y2ffouYDh3rRc1UGWoDXHy3ly8X2sPGzhoKvzwyBRYTfEgwlRZ v9hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date; bh=pbxwJNlqvHKPGDlj9LPQ+DPrUXCym5V0lOscbhh2wDg=; b=XLPmV4q712JQGrT8ZRYFVxZ08ZrQOJRq1N5O45S1FOlJQhkjWQRl1clUPuF24Nd95f HTEWCBTIyC1VvFfhjdosmN+YptcmpxQiXk62osXLwDJp7uxOk1tK/0rGIKWgapIbnYKe B5a/Tg9FR3LfTGM9arUiLadrzsl8/CzL2RlFzk9vyQFaNcTDsNfRIf/qWAttCS+kvKMJ p9ZqUSmOpucXhf0MXbFC8yZPmRL3BYAutigcUBRqPdkg0PaiXybXfj+jzGIcUyhPXGur wpGX2CHWuQrOdIKHSQBcfstWCUXy0P4TwWVz2J/56A4jifZ6lZfjErPTV6DLfrp/PHXZ XsOw== X-Gm-Message-State: ACgBeo3vaXyF8tPjZAXoxBvq8eNl0bYe7TUCWM+TtsPeqYPRX2QVy565 BdRVZK6Kq4Uqn/r1kVZBpKNtmzniiq5iIAfg0PIxjg4CoxOn7kQQjH/xBXWxpZ8P3XuxcXZlsGF ve4CoSCiQMD3b69AvHSpgnwI4pknFNbBBNkh+LkaYTT6mk1039t0pvmt69NxMd/b8Y73DPePgam HgRDIDBaSvra9RIeUOxOllrd2xz8KlxVoaVAQN X-Google-Smtp-Source: AA6agR7V1C9ZmG3iI2qAXREwXGkdyBrcL5ofyt8xNV2Vk1a9LIpIpTU89kuIkSAyDVGAg59Mx6Wf7w== X-Received: by 2002:a63:e07:0:b0:429:8604:d9ad with SMTP id d7-20020a630e07000000b004298604d9admr12936116pgl.586.1662747434495; Fri, 09 Sep 2022 11:17:14 -0700 (PDT) Received: from laptop280-ma-us.hitronhub.home (24-113-193-150.wavecable.com. [24.113.193.150]) by smtp.gmail.com with ESMTPSA id y8-20020aa79428000000b0053fa7ccf7e5sm49493pfo.25.2022.09.09.11.17.13 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 Sep 2022 11:17:13 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: why can't a table be part of the same publication as its schema From: Mark Dilger In-Reply-To: Date: Fri, 9 Sep 2022 11:17:12 -0700 Cc: "houzj.fnst@fujitsu.com" , Amit Kapila , Tom Lane , Peter Eisentraut , pgsql-hackers Content-Transfer-Encoding: quoted-printable Message-Id: <596EA671-66DF-4285-8560-0270DC062353@enterprisedb.com> References: <2729c9e2-9aac-8cda-f2f4-34f2bcc18f4e@enterprisedb.com> <37271.1662704091@sss.pgh.pa.us> To: Robert Haas X-Mailer: Apple Mail (2.3608.120.23.2.7) X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Sep 9, 2022, at 8:18 AM, Robert Haas wrote: >=20 > Things might be clearer if we'd made the syntax "ALTER PUBLICATION p1 > { ADD | DROP } { TABLE | SCHEMA } name". I don't understand why we > used this ALL TABLES IN SCHEMA language. The conversation, as I recall, was that "ADD SCHEMA foo" would only mean = all tables in foo, until publication of other object types became = supported, at which point "ADD SCHEMA foo" would suddenly mean more than = it did before. People might find that surprising, so the "ALL TABLES = IN" was intended to future-proof against surprising behavioral changes. =E2=80=94 Mark Dilger EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company