Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 29b6ddd

Browse files
committed
Fix translate_columns[] arrays in opfamily-related psql functions
Make number of translate_columns elements match the number of output columns. The only "true" value, which was previously specified, seems to be intended for opfamily operator "purpose" column. But that column has already translated values substituted. So, all elements in translate_columns[] should be "false".
1 parent b1953e6 commit 29b6ddd

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/bin/psql/describe.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6060,8 +6060,7 @@ listOperatorClasses(const char *access_method_pattern,
60606060
PGresult *res;
60616061
printQueryOpt myopt = pset.popt;
60626062
bool have_where = false;
6063-
static const bool translate_columns[] = {false, false, false, false, false,
6064-
false, false, false};
6063+
static const bool translate_columns[] = {false, false, false, false, false, false, false};
60656064

60666065
initPQExpBuffer(&buf);
60676066

@@ -6149,8 +6148,7 @@ listOperatorFamilies(const char *access_method_pattern,
61496148
PGresult *res;
61506149
printQueryOpt myopt = pset.popt;
61516150
bool have_where = false;
6152-
static const bool translate_columns[] = {false, false, false, false, false,
6153-
false, false, false};
6151+
static const bool translate_columns[] = {false, false, false, false};
61546152

61556153
initPQExpBuffer(&buf);
61566154

@@ -6230,8 +6228,7 @@ listOpFamilyOperators(const char *access_method_pattern,
62306228
printQueryOpt myopt = pset.popt;
62316229
bool have_where = false;
62326230

6233-
static const bool translate_columns[] = {false, false, false, false, false,
6234-
false, false, true, false};
6231+
static const bool translate_columns[] = {false, false, false, false, false, false};
62356232

62366233
initPQExpBuffer(&buf);
62376234

@@ -6326,7 +6323,7 @@ listOpFamilyProcedures(const char *access_method_pattern,
63266323
PGresult *res;
63276324
printQueryOpt myopt = pset.popt;
63286325
bool have_where = false;
6329-
static const bool translate_columns[] = {false, false, false, false, false, false, false};
6326+
static const bool translate_columns[] = {false, false, false, false, false, false};
63306327

63316328
initPQExpBuffer(&buf);
63326329

0 commit comments

Comments
 (0)