> On Sep 9, 2022, at 8:18 AM, Robert Haas <robertmh...@gmail.com> wrote:
> 
> 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.

—
Mark Dilger
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company





Reply via email to