Re: Fwd: psql include file using relative path
Gurjeet Singh <singh.gurjeet@gmail.com>
From: Gurjeet Singh <singh.gurjeet@gmail.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: David Fetter <david@fetter.org>, Ibrar Ahmed <ibrar.ahmad@gmail.com>, Robert Haas <robertmhaas@gmail.com>, PGSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2011-03-10T03:17:15Z
Lists: pgsql-hackers
On Wed, Mar 9, 2011 at 10:07 PM, Andrew Dunstan <andrew@dunslane.net> wrote: > > I agree there's a good case for the new feature. I think someone mentioned > tab completion upthread, and that doesn't make so much sense to me. This > only makes sense nested in a script - in fact if it's not called from inside > an included script (via -f or \i) it should possibly error out (if it > already does this I apologise - I haven't looked at the patch). > > I think \ir can stand on its own. In the patch, the \ir command falls back to \i behaviour if there's no file being processed currently. So, I think tab-completion makes sense for this command. And if someone wishes they can stop using \i altogether and \ir will give them old and new bheaviour seamlessly. Regards, -- Gurjeet Singh EnterpriseDB <http://www.enterprisedb.com/> Corporation The Enterprise PostgreSQL <http://www.postgresql.org/> Company