"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