PGAPI_Columns() does not follow search path - Mailing list pgsql-odbc

From Ken Faiczak
Subject PGAPI_Columns() does not follow search path
Date
Msg-id 71837C040963F748B9B94E123A289678415144@mailserver.sandvine.com
Whole thread Raw
List pgsql-odbc
Trying to get the columns though odbc
we have a namespace 'user' so when we log in as that user
and the searchpath is $user,public

when queried for columns from a table that exists in public
the postgres-unixodbc driver specifically does a select current_schema()
and uses that to restrict the queries to the namespace 'user'
(all other SQL queries don't do this and allow the full search_path())

if I do the same query without the namespace restriction the columns are
returned
as expected.

Is there a particular reason why this query is limited to the namespace.

I notice there is a specific workaround if the 'specified name space' ==
'name'
then it will try public as well but only if current == public
but since there is a current namespace == the user this code doesn't
fire

This looks like someone trying to solve somewhat the same problem,
would it not be better to just remove the namespace restriction
and let it follow the search_path.

Ken Faiczak


pgsql-odbc by date:

Previous
From: "Miguel Juan"
Date:
Subject: Re: UPDATE problem
Next
From: Andreas Pflug
Date:
Subject: Re: [SQL] delphi access question?