postgresql_16:7.1.75 CREATE PUBLICATION
PostgreSQL 16 > Reference > SQL Commands > CREATE PUBLICATION
define a new publication
CREATE PUBLICATION name
[ FOR ALL TABLES
| FOR publication_object [, ... ] ]
[ WITH ( publication_parameter [= value] [, ... ] ) ]
where publication_object is one of:
TABLE table_and_columns [, ... ]
TABLES IN SCHEMA { schema_name | CURRENT_SCHEMA } [, ... ]
and table_and_columns is:
[ ONLY ] table_name [ * ] [ ( column_name [, ... ] ) ] [ WHERE ( expression ) ]
CREATE PUBLICATION name
[ FOR ALL TABLES
| FOR publication_object [, ... ] ]
[ WITH ( publication_parameter [= value] [, ... ] ) ]
where publication_object is one of:
TABLE table_and_columns [, ... ]
TABLES IN SCHEMA { schema_name | CURRENT_SCHEMA } [, ... ]
and table_and_columns is:
[ ONLY ] table_name [ * ] [ ( column_name [, ... ] ) ] [ WHERE ( expression ) ]
Subsections
- postgresql_16:7.1.75.1 Description
- postgresql_16:7.1.75.2 Parameters
- postgresql_16:7.1.75.3 Notes
- postgresql_16:7.1.75.4 Examples
- postgresql_16:7.1.75.5 Compatibility
- postgresql_16:7.1.75.6 See Also