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

2007-06-05 Thread Gurjeet Singh
On 6/5/07, Tom Lane <[EMAIL PROTECTED]> wrote: "Gurjeet Singh" <[EMAIL PROTECTED]> 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 ... (this

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

2007-06-05 Thread Gurjeet Singh
On 6/5/07, Douglas Toltzman <[EMAIL PROTECTED]> wrote: I'm not sure about the Windows shell, but the bash shell will convert $libdir before handing it off to psql. I am actually using MinGW, so no I am not using Windows shell but a bash shell compiled for Windows. Yes, it was actually the ba

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

2007-06-05 Thread Tom Lane
"Gurjeet Singh" <[EMAIL PROTECTED]> 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 con

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

2007-06-05 Thread Douglas Toltzman
I've not done what you're doing, so this is just a suggestion. I'm not sure about the Windows shell, but the bash shell will convert $libdir before handing it off to psql. Is it possible that $libdir has a different meaning in psql than it does to the shell? On Jun 5, 2007, at 4:20 PM, Gu

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

2007-06-05 Thread Gurjeet Singh
The following bug has been logged online: Bug reference: 3363 Logged by: Gurjeet Singh Email address: [EMAIL PROTECTED] PostgreSQL version: 8.3devel Operating system: Windows Description:Unable to load a plugin/library using -c switch to the psql Details: The follow