PG_FILE2STR(1)

NAME
pg_file2str.pl - escape a file as PostgreSQL string literal.

SYNOPSIS
pg_file2str.pl < inputfile

pg_file2str.pl inputfile

DESCRIPTION
pg_file2str.pl reads a file from STDIN or the filename given as its first command line argument and prints the file properly escaped as a PostgreSQL string literal to STDOUT.

SEE ALSO
<http://www.postgresql.org/docs/8.3/interactive/sql-syntax-lexical.html#SQL-SYNTAX-STRINGS>

AUTHOR
Dirk Jagdmann <doj@cubic.org> <http://pgfoundry.org/projects/pg-toolbox/>

LICENSE
zlib/libpng license: <http://en.wikipedia.org/wiki/Zlib_License>