Skip to content

Commit c5f86b2

Browse files
MasaoFujiiCommitfest Bot
authored andcommitted
pg_dump: Remove unnecessary code for security labels on extensions.
Commit d9572c4 added extension support and made pg_dump attempt to dump security labels on extensions. However, security labels on extensions are not actually supported, so this code was unnecessary. This commit removes it. Suggested-by: Jian He <[email protected]> Author: Fujii Masao <[email protected]> Discussion: https://postgr.es/m/CACJufxF8=z0v=888NKKEoTHQ+Jc4EXutFi91BF0fFjgFsZT6JQ@mail.gmail.com
1 parent e1a912c commit c5f86b2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12021,17 +12021,12 @@ dumpExtension(Archive *fout, const ExtensionInfo *extinfo)
1202112021
.createStmt = q->data,
1202212022
.dropStmt = delq->data));
1202312023

12024-
/* Dump Extension Comments and Security Labels */
12024+
/* Dump Extension Comments */
1202512025
if (extinfo->dobj.dump & DUMP_COMPONENT_COMMENT)
1202612026
dumpComment(fout, "EXTENSION", qextname,
1202712027
NULL, "",
1202812028
extinfo->dobj.catId, 0, extinfo->dobj.dumpId);
1202912029

12030-
if (extinfo->dobj.dump & DUMP_COMPONENT_SECLABEL)
12031-
dumpSecLabel(fout, "EXTENSION", qextname,
12032-
NULL, "",
12033-
extinfo->dobj.catId, 0, extinfo->dobj.dumpId);
12034-
1203512030
free(qextname);
1203612031

1203712032
destroyPQExpBuffer(q);

0 commit comments

Comments
 (0)