aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-05-26 12:51:05 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-05-26 12:51:05 -0400
commit1cfc9dc75b175c68443c50a359ae5b7a2529326e (patch)
treeb4516d07d7fa89718b581b8654ea763d5a3d8a8a /contrib/postgres_fdw/postgres_fdw.h
parentd192a19799a97de20ca9424df17cb211648ba94d (diff)
downloadpostgresql-1cfc9dc75b175c68443c50a359ae5b7a2529326e.tar.gz
postgresql-1cfc9dc75b175c68443c50a359ae5b7a2529326e.zip
Fix pg_dump to not emit invalid SQL for an empty operator class.
If an operator class has no operators or functions, and doesn't need a STORAGE clause, we emitted "CREATE OPERATOR CLASS ... AS ;" which is syntactically invalid. Fix by forcing a STORAGE clause to be emitted anyway in this case. (At some point we might consider changing the grammar to allow CREATE OPERATOR CLASS without an opclass_item_list. But probably we'd want to omit the AS in that case, so that wouldn't fix this pg_dump issue anyway.) It's been like this all along, so back-patch to all supported branches. Daniel Gustafsson, tweaked by me to avoid a dangling-pointer bug Discussion: https://postgr.es/m/D9E5FC64-7A37-4F3D-B946-7E4FB468F88A@yesql.se
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.h')
0 files changed, 0 insertions, 0 deletions