RE: Added schema level support for publication.
tanghy.fnst@fujitsu.com <tanghy.fnst@fujitsu.com>
From: "tanghy.fnst@fujitsu.com" <tanghy.fnst@fujitsu.com>
To: vignesh C <vignesh21@gmail.com>
Cc: Rahila Syed <rahilasyed90@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Ajin Cherian <itsajin@gmail.com>
Date: 2021-06-24T06:40:47Z
Lists: pgsql-hackers
Hi I applied your V7* patch and complied it. The following warnings came out, please take a look. >pg_publication.c:688:22: warning: ‘tables’ may be used uninitialized in this function [-Wmaybe-uninitialized] > funcctx->user_fctx = (void *) tables; > ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ >describe.c: In function ‘describePublications’: >describe.c:6479:35: warning: ‘pubtype’ may be used uninitialized in this function [-Wmaybe-uninitialized] > else if (has_pubtype && pubtype == PUBTYPE_SCHEMA) For the warning in pg_publication.c, maybe we can replace the following 'else if' with 'else'. + else if (publication->pubtype == PUBTYPE_SCHEMA) For the warning in describe.c, initialization of 'pubtype' is needed. Regards Tang
Commits
-
Include schema/table publications even with exclude options in dump.
- 4aa6fa3cd0a2 18.0 landed
-
Rename some enums to use TABLE instead of REL.
- b3812d0b9bcf 15.0 landed
-
Add tap tests for the schema publications.
- 6b0f6f79eef2 15.0 landed
-
Allow publishing the tables of schema.
- 5a2832465fd8 15.0 landed
-
In pg_dump, use simplehash.h to look up dumpable objects by OID.
- 92316a4582a5 15.0 cited