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

Commitd6b1a40

Browse files
committed
Arrange for GRANT/REVOKE on a view to be dumped at the right time,
namely after the view definition rather than before it. Bug introducedin 7.1 by changes to dump stuff in OID ordering.
1 parenta88408b commitd6b1a40

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
*
2323
*
2424
* IDENTIFICATION
25-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.205.2.2 2001/05/12 23:36:44 tgl Exp $
25+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.205.2.3 2001/07/29 22:12:49 tgl Exp $
2626
*
2727
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2828
*
@@ -3828,6 +3828,7 @@ dumpACL(Archive *fout, TableInfo tbinfo)
38283828
*tok,
38293829
*eqpos,
38303830
*priv;
3831+
char*objoid;
38313832
char*sql;
38323833
chartmp[1024];
38333834
intsSize=4096;
@@ -3908,7 +3909,12 @@ dumpACL(Archive *fout, TableInfo tbinfo)
39083909

39093910
free(aclbuf);
39103911

3911-
ArchiveEntry(fout,tbinfo.oid,tbinfo.relname,"ACL",NULL,sql,"","","",NULL,NULL);
3912+
if (tbinfo.viewdef!=NULL)
3913+
objoid=tbinfo.viewoid;
3914+
else
3915+
objoid=tbinfo.oid;
3916+
3917+
ArchiveEntry(fout,objoid,tbinfo.relname,"ACL",NULL,sql,"","","",NULL,NULL);
39123918

39133919
}
39143920

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp