Skip to content

Commit c0a3b21

Browse files
committed
pg_dump's getTypes() needn't retrieve typinput or typoutput anymore.
Commit 64f3524 removed the stanza of code that examined these values. I failed to notice they were unnecessary because my compiler didn't warn about the un-read variables. Noted by Peter Eisentraut.
1 parent 5c80642 commit c0a3b21

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3688,8 +3688,6 @@ getTypes(Archive *fout, int *numTypes)
36883688
int i_inittypacl;
36893689
int i_initrtypacl;
36903690
int i_rolname;
3691-
int i_typinput;
3692-
int i_typoutput;
36933691
int i_typelem;
36943692
int i_typrelid;
36953693
int i_typrelkind;
@@ -3734,8 +3732,7 @@ getTypes(Archive *fout, int *numTypes)
37343732
"%s AS inittypacl, "
37353733
"%s AS initrtypacl, "
37363734
"(%s t.typowner) AS rolname, "
3737-
"t.typinput::oid AS typinput, "
3738-
"t.typoutput::oid AS typoutput, t.typelem, t.typrelid, "
3735+
"t.typelem, t.typrelid, "
37393736
"CASE WHEN t.typrelid = 0 THEN ' '::\"char\" "
37403737
"ELSE (SELECT relkind FROM pg_class WHERE oid = t.typrelid) END AS typrelkind, "
37413738
"t.typtype, t.typisdefined, "
@@ -3763,8 +3760,7 @@ getTypes(Archive *fout, int *numTypes)
37633760
"typnamespace, typacl, NULL as rtypacl, "
37643761
"NULL AS inittypacl, NULL AS initrtypacl, "
37653762
"(%s typowner) AS rolname, "
3766-
"typinput::oid AS typinput, "
3767-
"typoutput::oid AS typoutput, typelem, typrelid, "
3763+
"typelem, typrelid, "
37683764
"CASE WHEN typrelid = 0 THEN ' '::\"char\" "
37693765
"ELSE (SELECT relkind FROM pg_class WHERE oid = typrelid) END AS typrelkind, "
37703766
"typtype, typisdefined, "
@@ -3779,8 +3775,7 @@ getTypes(Archive *fout, int *numTypes)
37793775
"typnamespace, NULL AS typacl, NULL as rtypacl, "
37803776
"NULL AS inittypacl, NULL AS initrtypacl, "
37813777
"(%s typowner) AS rolname, "
3782-
"typinput::oid AS typinput, "
3783-
"typoutput::oid AS typoutput, typelem, typrelid, "
3778+
"typelem, typrelid, "
37843779
"CASE WHEN typrelid = 0 THEN ' '::\"char\" "
37853780
"ELSE (SELECT relkind FROM pg_class WHERE oid = typrelid) END AS typrelkind, "
37863781
"typtype, typisdefined, "
@@ -3795,8 +3790,7 @@ getTypes(Archive *fout, int *numTypes)
37953790
"typnamespace, NULL AS typacl, NULL as rtypacl, "
37963791
"NULL AS inittypacl, NULL AS initrtypacl, "
37973792
"(%s typowner) AS rolname, "
3798-
"typinput::oid AS typinput, "
3799-
"typoutput::oid AS typoutput, typelem, typrelid, "
3793+
"typelem, typrelid, "
38003794
"CASE WHEN typrelid = 0 THEN ' '::\"char\" "
38013795
"ELSE (SELECT relkind FROM pg_class WHERE oid = typrelid) END AS typrelkind, "
38023796
"typtype, typisdefined, "
@@ -3820,8 +3814,6 @@ getTypes(Archive *fout, int *numTypes)
38203814
i_inittypacl = PQfnumber(res, "inittypacl");
38213815
i_initrtypacl = PQfnumber(res, "initrtypacl");
38223816
i_rolname = PQfnumber(res, "rolname");
3823-
i_typinput = PQfnumber(res, "typinput");
3824-
i_typoutput = PQfnumber(res, "typoutput");
38253817
i_typelem = PQfnumber(res, "typelem");
38263818
i_typrelid = PQfnumber(res, "typrelid");
38273819
i_typrelkind = PQfnumber(res, "typrelkind");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy