diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2016-03-16 23:18:07 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2016-03-16 23:18:07 -0400 |
commit | 8ee2e5f78cd7f99d41ddf2c396d83adb6f9df2db (patch) | |
tree | 90f97ddc3cfa429ff020dd05f2abe5de030dbc13 /src/backend/utils/adt/jsonfuncs.c | |
parent | 3f14d8d59457f98b8ddbbc29cffae9260037aad5 (diff) | |
download | postgresql-8ee2e5f78cd7f99d41ddf2c396d83adb6f9df2db.tar.gz postgresql-8ee2e5f78cd7f99d41ddf2c396d83adb6f9df2db.zip |
Fix "pg_bench -C -M prepared".
This didn't work because when we dropped and re-established a database
connection, we did not bother to reset session-specific state such as
the statements-are-prepared flags.
The st->prepared[] array certainly needs to be flushed, and I cleared a
couple of other fields as well that couldn't possibly retain meaningful
state for a new connection.
In passing, fix some bogus comments and strange field order choices.
Per report from Robins Tharakan.
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions