Re: Support logical replication of DDLs
От | li jie |
---|---|
Тема | Re: Support logical replication of DDLs |
Дата | |
Msg-id | CAGfChW4wrY2jkw+dX=mqwgEHov7kKUWmEANQ7O9TYkzeg1SLXQ@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Support logical replication of DDLs (Zheng Li <zhengli10@gmail.com>) |
Ответы |
Re: Support logical replication of DDLs
|
Список | pgsql-hackers |
> > Attached please find a new solution that skips the deparsing of ALTER TABLE > subcommands generated for TableLikeClause. The patch v42-0005 added a new > boolean field table_like to AlterTableStmt in order to identify an ALTER TABLE > subcommand generated internally for the TableLikeClause. > > Regards, > Zheng I took a look at this patch and it appears to be incomplete. > @@ -1974,6 +1974,7 @@ typedef struct AlterTableStmt > List *cmds; /* list of subcommands */ > ObjectType objtype; /* type of object */ > bool missing_ok; /* skip error if table missing */ > + bool table_like; /* internally generated for TableLikeClause */ > } AlterTableStmt; The table_like field should include implementations of the `copynode` and `equalnode `methods.
В списке pgsql-hackers по дате отправления: