Re: BUG #3363: Unable to load a plugin/library using -c switch to the psql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gurjeet Singh" <singh(dot)gurjeet(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3363: Unable to load a plugin/library using -c switch to the psql
Date: 2007-06-05 17:16:09
Message-ID: 20861.1181063769@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Gurjeet Singh" <singh(dot)gurjeet(at)gmail(dot)com> writes:
> The following command fails:

> psql postgres test -X -c "load '$libdir/plugins/index_adviser.dll';"

Define "fails". I get complaints about the arguments being out of
order, which they are ...

> Here, 'test' user (non-superuser) is trying to connect to 'postgres'
> database, and wishes to load a plugin as the first step.

If you think that -c means "run this command and then go into normal
interactive mode", you're wrong anyway.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Gurjeet Singh 2007-06-05 17:17:22 Re: BUG #3363: Unable to load a plugin/library using -c switch to the psql
Previous Message Douglas Toltzman 2007-06-05 17:00:24 Re: BUG #3363: Unable to load a plugin/library using -c switch to the psql