aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonb_util.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-05-19 00:06:26 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-05-19 00:06:49 -0400
commite41cc470bb57a0f3a765fa44b77ef104b5a5a01e (patch)
tree26c61813a04f53393cb0ed41527495c543fe072b /src/backend/utils/adt/jsonb_util.c
parent4d30d4b9d725211859c63a18e458015636d24b94 (diff)
downloadpostgresql-e41cc470bb57a0f3a765fa44b77ef104b5a5a01e.tar.gz
postgresql-e41cc470bb57a0f3a765fa44b77ef104b5a5a01e.zip
Fix non-C89-compatible coding in pgbench.
C89 says that compound initializers may only contain constant expressions; a restriction violated by commit 89d00cbe. While we've had no actual field complaints about this, C89 is still the project standard, and it's not saving all that much code to break compatibility here. So let's adhere to the old restriction. In passing, replace a bunch of hardwired constants "256" with sizeof(target-variable), just because the latter is more readable and less breakable. And const-ify where possible. Back-patch to 9.3 where the nonportable code was added. Andres Freund and Tom Lane
Diffstat (limited to 'src/backend/utils/adt/jsonb_util.c')
0 files changed, 0 insertions, 0 deletions