We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6ca510 commit 33d3f55Copy full SHA for 33d3f55
contrib/pg_stat_statements/pg_stat_statements.c
@@ -1160,6 +1160,7 @@ pg_stat_statements(PG_FUNCTION_ARGS)
1160
bool nulls[PG_STAT_STATEMENTS_COLS];
1161
int i = 0;
1162
Counters tmp;
1163
+ int64 queryid = entry->key.queryid;
1164
1165
memset(values, 0, sizeof(values));
1166
memset(nulls, 0, sizeof(nulls));
@@ -1172,7 +1173,7 @@ pg_stat_statements(PG_FUNCTION_ARGS)
1172
1173
char *qstr;
1174
1175
if (detected_version >= PGSS_V1_2)
- values[i++] = Int64GetDatumFast((int64) entry->key.queryid);
1176
+ values[i++] = Int64GetDatumFast(queryid);
1177
1178
qstr = (char *)
1179
pg_do_encoding_conversion((unsigned char *) entry->query,
0 commit comments