On Sat, Dec 7, 2013 at 3:50 PM, Peter Eisentraut <pete...@gmx.net> wrote:
> 32-bit buildfarm members are having problems with this patch.

This should fix that problem. Thanks.


-- 
Peter Geoghegan
diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c
new file mode 100644
index 4e262b4..9f3e376
*** a/contrib/pg_stat_statements/pg_stat_statements.c
--- b/contrib/pg_stat_statements/pg_stat_statements.c
*************** pg_stat_statements(PG_FUNCTION_ARGS)
*** 1160,1165 ****
--- 1160,1166 ----
  		bool		nulls[PG_STAT_STATEMENTS_COLS];
  		int			i = 0;
  		Counters	tmp;
+ 		int64		queryid = entry->key.queryid;
  
  		memset(values, 0, sizeof(values));
  		memset(nulls, 0, sizeof(nulls));
*************** pg_stat_statements(PG_FUNCTION_ARGS)
*** 1172,1178 ****
  			char	   *qstr;
  
  			if (detected_version >= PGSS_V1_2)
! 				values[i++] = Int64GetDatumFast((int64) entry->key.queryid);
  
  			qstr = (char *)
  				pg_do_encoding_conversion((unsigned char *) entry->query,
--- 1173,1179 ----
  			char	   *qstr;
  
  			if (detected_version >= PGSS_V1_2)
! 				values[i++] = Int64GetDatumFast(queryid);
  
  			qstr = (char *)
  				pg_do_encoding_conversion((unsigned char *) entry->query,
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to