Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc0a3b21

Browse files
committed
pg_dump's getTypes() needn't retrieve typinput or typoutput anymore.
Commit64f3524 removed the stanza of code that examined these values.I failed to notice they were unnecessary because my compiler didn'twarn about the un-read variables. Noted by Peter Eisentraut.
1 parent5c80642 commitc0a3b21

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
inti_inittypacl;
36893689
inti_initrtypacl;
36903690
inti_rolname;
3691-
inti_typinput;
3692-
inti_typoutput;
36933691
inti_typelem;
36943692
inti_typrelid;
36953693
inti_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)

[8]ページ先頭

©2009-2025 Movatter.jp