pg_dump_view.diff

text/plain

Filename: pg_dump_view.diff
Type: text/plain
Part: 0
Message: Re: Re: [HACKERS] when does CREATE VIEW not create a view?
Index: bin/pg_dump/pg_dump.c
===================================================================
RCS file: /home/projects/pgsql/cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v
retrieving revision 1.163
diff -r1.163 pg_dump.c
258a259
>       char       rulename[NAMEDATALEN];
264c265,266
<       appendPQExpBuffer(query, "and rulename = '_RET%s'", relname);
---
>       snprintf(rulename,NAMEDATALEN,"_RET%s",relname);
>       appendPQExpBuffer(query, "and rulename = '%s'", rulename);