Content-Length: 271547 | pFad | http://github.com/postgrespro/postgres/commit/33d3f5594ac0cc4b6df3bf29b39db93bc32f1213

3B Fix pg_stat_statements build on 32-bit systems · postgrespro/postgres@33d3f55 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/33d3f5594ac0cc4b6df3bf29b39db93bc32f1213

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy