mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Add record_image_ops opclass for matview concurrent refresh.
REFRESH MATERIALIZED VIEW CONCURRENTLY was broken for any matview containing a column of a type without a default btree operator class. It also did not produce results consistent with a non- concurrent REFRESH or a normal view if any column was of a type which allowed user-visible differences between values which compared as equal according to the type's default btree opclass. Concurrent matview refresh was modified to use the new operators to solve these problems. Documentation was added for record comparison, both for the default btree operator class for record, and the newly added operators. Regression tests now check for proper behavior both for a matview with a box column and a matview containing a citext column. Reviewed by Steve Singer, who suggested some of the doc language.
This commit is contained in:
@ -631,6 +631,13 @@ extern Datum record_gt(PG_FUNCTION_ARGS);
|
||||
extern Datum record_le(PG_FUNCTION_ARGS);
|
||||
extern Datum record_ge(PG_FUNCTION_ARGS);
|
||||
extern Datum btrecordcmp(PG_FUNCTION_ARGS);
|
||||
extern Datum record_image_eq(PG_FUNCTION_ARGS);
|
||||
extern Datum record_image_ne(PG_FUNCTION_ARGS);
|
||||
extern Datum record_image_lt(PG_FUNCTION_ARGS);
|
||||
extern Datum record_image_gt(PG_FUNCTION_ARGS);
|
||||
extern Datum record_image_le(PG_FUNCTION_ARGS);
|
||||
extern Datum record_image_ge(PG_FUNCTION_ARGS);
|
||||
extern Datum btrecordimagecmp(PG_FUNCTION_ARGS);
|
||||
|
||||
/* ruleutils.c */
|
||||
extern bool quote_all_identifiers;
|
||||
|
Reference in New Issue
Block a user