aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-09-01 11:48:08 +0900
committerMichael Paquier <michael@paquier.xyz>2021-09-01 11:48:08 +0900
commitc4f7a6b87ff350200f4b3afb9fe05e2899161070 (patch)
treed53037fa88469396f242ad4f026e63725816ddb9 /contrib/postgres_fdw/postgres_fdw.c
parentde1d4fef71cb00370aa5f794fe05355c1d063aea (diff)
downloadpostgresql-c4f7a6b87ff350200f4b3afb9fe05e2899161070.tar.gz
postgresql-c4f7a6b87ff350200f4b3afb9fe05e2899161070.zip
Refactor one conversion of SQLSTATE to string in elog.c
unpack_sql_state() has been introduced in d46bc44 to refactor the unpacking of a SQLSTATE into a string, but it forgot one code path when sending error reports to clients that could make use of it. This changes the code to also use unpack_sql_state() there, simplifying a bit the code. Author: Peter Smith Discussion: https://postgr.es/m/CAHut+PuYituuD1-VVZUNcmCQuc3ZzZMPoO57POgm8tnXOkwJAA@mail.gmail.com
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions