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);