Commit 1042de69 authored by Tom Lane's avatar Tom Lane

pg_dump: avoid useless query in binary_upgrade_set_type_oids_by_type_oid

Commit 6df7a969 wrote appendPQExpBuffer where it should have
written printfPQExpBuffer.  This resulted in re-issuing the
previous query along with the desired one, which very accidentally
had no negative consequences except for some wasted cycles.

Back-patch to v14 where that came in.

Discussion: https://postgr.es/m/1714711.1642962663@sss.pgh.pa.us
parent ef4edf88
...@@ -4652,7 +4652,7 @@ binary_upgrade_set_type_oids_by_type_oid(Archive *fout, ...@@ -4652,7 +4652,7 @@ binary_upgrade_set_type_oids_by_type_oid(Archive *fout,
{ {
if (fout->remoteVersion >= 140000) if (fout->remoteVersion >= 140000)
{ {
appendPQExpBuffer(upgrade_query, printfPQExpBuffer(upgrade_query,
"SELECT t.oid, t.typarray " "SELECT t.oid, t.typarray "
"FROM pg_catalog.pg_type t " "FROM pg_catalog.pg_type t "
"JOIN pg_catalog.pg_range r " "JOIN pg_catalog.pg_range r "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment