Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit88b0a31

Browse files
committed
Mark some columns in pg_subscription as NOT NULL.
In pg_subscription, subconninfo, subslotname, subsynccommit andsubpublications are expected not to be NULL. Therefore this patchadds BKI_FORCE_NOT_NULL markings to them.This patch is basically unnecessary unless the code has a bug whichwrongly sets either of those columns to NULL. But it's good to havethis as a safeguard.Author: Masahiko SawadaReviewed-by: Kyotaro HoriguchiReported-by: Fujii MasaoDiscussion:http://postgr.es/m/CAHGQGwFDWh_Qr-q_GEMpD+qH=vYPMdVqw=ZOSY3kX_Pna9R9SA@mail.gmail.com
1 parent8bbc618 commit88b0a31

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

‎src/include/catalog/pg_subscription.h

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,17 @@ CATALOG(pg_subscription,6100) BKI_SHARED_RELATION BKI_ROWTYPE_OID(6101) BKI_SCHE
4141
* (the worker should be running) */
4242

4343
#ifdefCATALOG_VARLEN/* variable-length fields start here */
44-
textsubconninfo;/* Connection string to the publisher */
45-
NameDatasubslotname;/* Slot name on publisher */
46-
textsubsynccommit;/* Synchronous commit setting for worker */
47-
textsubpublications[1];/* List of publications subscribed to */
44+
/* Connection string to the publisher */
45+
textsubconninfoBKI_FORCE_NOT_NULL;
46+
47+
/* Slot name on publisher */
48+
NameDatasubslotnameBKI_FORCE_NOT_NULL;
49+
50+
/* Synchronous commit setting for worker */
51+
textsubsynccommitBKI_FORCE_NOT_NULL;
52+
53+
/* List of publications subscribed to */
54+
textsubpublications[1]BKI_FORCE_NOT_NULL;
4855
#endif
4956
}FormData_pg_subscription;
5057

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp