Skip to content

Commit 33d3f55

Browse files
committed
Fix pg_stat_statements build on 32-bit systems
Peter Geoghegan
1 parent d6ca510 commit 33d3f55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,7 @@ pg_stat_statements(PG_FUNCTION_ARGS)
11601160
bool nulls[PG_STAT_STATEMENTS_COLS];
11611161
int i = 0;
11621162
Counters tmp;
1163+
int64 queryid = entry->key.queryid;
11631164

11641165
memset(values, 0, sizeof(values));
11651166
memset(nulls, 0, sizeof(nulls));
@@ -1172,7 +1173,7 @@ pg_stat_statements(PG_FUNCTION_ARGS)
11721173
char *qstr;
11731174

11741175
if (detected_version >= PGSS_V1_2)
1175-
values[i++] = Int64GetDatumFast((int64) entry->key.queryid);
1176+
values[i++] = Int64GetDatumFast(queryid);
11761177

11771178
qstr = (char *)
11781179
pg_do_encoding_conversion((unsigned char *) entry->query,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy