Put back encoding-conversion step in processing of incoming queries;
Tom Lane <tgl@sss.pgh.pa.us>
Put back encoding-conversion step in processing of incoming queries; I had inadvertently omitted it while rearranging things to support length-counted incoming messages. Also, change the parser's API back to accepting a 'char *' query string instead of 'StringInfo', as the latter wasn't buying us anything except overhead. (I think when I put it in I had some notion of making the parser API 8-bit-clean, but seeing that flex depends on null-terminated input, that's not really ever gonna happen.)
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/spi.c | modified | +2 −6 |
| src/backend/optimizer/util/clauses.c | modified | +2 −6 |
| src/backend/parser/parser.c | modified | +2 −2 |
| src/backend/parser/parse_type.c | modified | +2 −2 |
| src/backend/parser/scan.l | modified | +11 −6 |
| src/backend/postmaster/pgstat.c | modified | +4 −3 |
| src/backend/tcop/postgres.c | modified | +35 −36 |
| src/include/parser/gramparse.h | modified | +2 −3 |
| src/include/parser/parser.h | modified | +2 −3 |
| src/include/pgstat.h | modified | +2 −2 |
| src/include/tcop/tcopprot.h | modified | +5 −6 |