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

Commit05a6e87

Browse files
committed
Re-allow user_catalog_table option for materialized views.
The reloptions stuff allows this option to be set on a matview.While it's questionable whether that is useful or was really intended,it does work, and we shouldn't change that in minor releases. Commite3e66d8 disabled the option since I didn't realize that it waspossible for it to be set on a matview. Tweak the test to re-allow it.Discussion: <19749.1478711862@sss.pgh.pa.us>
1 parent7defc3b commit05a6e87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/include/utils/rel.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,9 @@ typedef struct StdRdOptions
270270
*from the pov of logical decoding. Note multiple eval of argument!
271271
*/
272272
#defineRelationIsUsedAsCatalogTable(relation)\
273-
((relation)->rd_rel->relkind == RELKIND_RELATION && \
274-
(relation)->rd_options ? \
273+
((relation)->rd_options && \
274+
((relation)->rd_rel->relkind == RELKIND_RELATION || \
275+
(relation)->rd_rel->relkind == RELKIND_MATVIEW) ? \
275276
((StdRdOptions *) (relation)->rd_options)->user_catalog_table : false)
276277

277278
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp