On Fri, Nov 18, 2011 at 4:53 PM, Michael Smolsky <sitr...@email.com> wrote: > Could you please also confirm that variable expansion works correctly for > psql's \i command as well? > > Test case (type on psql client prompt): > > \set my_dir /some/path/to/sql/script/dir > \i :my_dir/my-script.sql > > I expect the parser to load and execute my-script.sql located within > /some/path/to/sql/script/dir
Yup, that works on a 9.2dev client: test=# \set my_dir /tmp/foo/bar/baz test=# \i :my_dir/test.sql ?column? ---------- 1 (1 row) with test.sql containing the single line "SELECT 1;" Josh -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs