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

Commit321c287

Browse files
committed
Improve internal logical replication error for missing equality strategy
This "shouldn't happen", except right now it can with a temporal gistindex (to be fixed soon), because of missing gist support inget_equal_strategy_number(). But right now, the error is not caughtright away, but instead you get the subsequent error about a "missingoperator 0". This makes the error more accurate.Author: Paul Jungwirth <pj@illuminatedcomputing.com>Discussion:https://www.postgresql.org/message-id/flat/CA+renyUApHgSZF9-nd-a0+OPGharLQLO=mDHcY4_qQ0+noCUVg@mail.gmail.com
1 parentd37e856 commit321c287

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎src/backend/executor/execReplication.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ build_replindex_scan_key(ScanKey skey, Relation rel, Relation idxrel,
134134
optype=get_opclass_input_type(opclass->values[index_attoff]);
135135
opfamily=get_opclass_family(opclass->values[index_attoff]);
136136
eq_strategy=get_equal_strategy_number(opclass->values[index_attoff]);
137+
if (!eq_strategy)
138+
elog(ERROR,"missing equal strategy for opclass %u",opclass->values[index_attoff]);
137139

138140
operator=get_opfamily_member(opfamily,optype,
139141
optype,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp