Re: [BUGS] dump of functions does not handle backslashes correctly

2001-01-03 Thread Tom Lane
"Robert B. Easter" <[EMAIL PROTECTED]> writes: > Is this a pg_dump bug or is there there some way to do this right? It's a pg_dump bug --- pg_dump knows how to quote special characters in string literals, but failed to do so for function bodies (and a number of other places too). I've committed

[BUGS] dump of functions does not handle backslashes correctly

2000-12-01 Thread Robert B. Easter
If you create a function from psql like: CREATE FUNCTION "plpgsql_call_handler" ( ) RETURNS opaque AS '/usr/local/pgsql/lib/plpgsql.so' LANGUAGE 'C'; CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER "plpgsql_call_handler" LANCOMPILER 'PL/pgSQL'; CREATE FUNCTION "atestfun" ( ) RETURNS text