mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
Change publication's publish_generated_columns option type to enum.
The current boolean publish_generated_columns option only supports a binary choice, which is insufficient for future enhancements where generated columns can be of different types (e.g., stored or virtual). The supported values for the publish_generated_columns option are 'none' and 'stored'. Author: Vignesh C <vignesh21@gmail.com> Reviewed-by: Peter Smith <smithpb2250@gmail.com> Reviewed-by: Peter Eisentraut <peter@eisentraut.org> Reviewed-by: Amit Kapila <amit.kapila16@gmail.com> Discussion: https://postgr.es/m/d718d219-dd47-4a33-bb97-56e8fc4da994@eisentraut.org Discussion: https://postgr.es/m/B80D17B2-2C8E-4C7D-87F2-E5B4BE3C069E@gmail.com
This commit is contained in:
@@ -225,19 +225,20 @@ extern char *logicalrep_read_origin(StringInfo in, XLogRecPtr *origin_lsn);
|
||||
extern void logicalrep_write_insert(StringInfo out, TransactionId xid,
|
||||
Relation rel, TupleTableSlot *newslot,
|
||||
bool binary, Bitmapset *columns,
|
||||
bool include_gencols);
|
||||
PublishGencolsType include_gencols_type);
|
||||
extern LogicalRepRelId logicalrep_read_insert(StringInfo in, LogicalRepTupleData *newtup);
|
||||
extern void logicalrep_write_update(StringInfo out, TransactionId xid,
|
||||
Relation rel, TupleTableSlot *oldslot,
|
||||
TupleTableSlot *newslot, bool binary,
|
||||
Bitmapset *columns, bool include_gencols);
|
||||
Bitmapset *columns,
|
||||
PublishGencolsType include_gencols_type);
|
||||
extern LogicalRepRelId logicalrep_read_update(StringInfo in,
|
||||
bool *has_oldtuple, LogicalRepTupleData *oldtup,
|
||||
LogicalRepTupleData *newtup);
|
||||
extern void logicalrep_write_delete(StringInfo out, TransactionId xid,
|
||||
Relation rel, TupleTableSlot *oldslot,
|
||||
bool binary, Bitmapset *columns,
|
||||
bool include_gencols);
|
||||
PublishGencolsType include_gencols_type);
|
||||
extern LogicalRepRelId logicalrep_read_delete(StringInfo in,
|
||||
LogicalRepTupleData *oldtup);
|
||||
extern void logicalrep_write_truncate(StringInfo out, TransactionId xid,
|
||||
@@ -249,7 +250,7 @@ extern void logicalrep_write_message(StringInfo out, TransactionId xid, XLogRecP
|
||||
bool transactional, const char *prefix, Size sz, const char *message);
|
||||
extern void logicalrep_write_rel(StringInfo out, TransactionId xid,
|
||||
Relation rel, Bitmapset *columns,
|
||||
bool include_gencols);
|
||||
PublishGencolsType include_gencols_type);
|
||||
extern LogicalRepRelation *logicalrep_read_rel(StringInfo in);
|
||||
extern void logicalrep_write_typ(StringInfo out, TransactionId xid,
|
||||
Oid typoid);
|
||||
@@ -274,6 +275,6 @@ extern void logicalrep_read_stream_abort(StringInfo in,
|
||||
extern const char *logicalrep_message_type(LogicalRepMsgType action);
|
||||
extern bool logicalrep_should_publish_column(Form_pg_attribute att,
|
||||
Bitmapset *columns,
|
||||
bool include_gencols);
|
||||
PublishGencolsType include_gencols_type);
|
||||
|
||||
#endif /* LOGICAL_PROTO_H */
|
||||
|
||||
Reference in New Issue
Block a user