Skip site navigation (1) Skip section navigation (2)

Re: ODBC: how to change search_path in DSN?

From: Jim Nasby <decibel(at)decibel(dot)org>
To: Carlo Stonebanks <stonec(dot)register(at)sympatico(dot)ca>
Cc: pgsql-interfaces(at)postgresql(dot)org, PGSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: ODBC: how to change search_path in DSN?
Date: 2007-01-15 03:07:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-interfaces
On Dec 19, 2006, at 12:06 PM, Carlo Stonebanks wrote:
> I would like to create an ODBC DSN for a user to export files rom  
> Acccess to
> a safe area. Right now, all tables are being dumped to public by  
> default.
> In order to use the one-click export option for Access, I would  
> like to have
> the connection for the ODBC DSN file change the default search_path to
> my_schema (and my_schema only).
> After seeing a post on this on another resource, I tried putting
> schema=my_schema in the connection settings text box, but the tables
> appeared in public anyway.

I think your only option is to change the default for the user. IT  
would be handy if there was a way to set search_path via  
pg_service.conf, though...
Jim Nasby                                            jim(at)nasby(dot)net
EnterpriseDB      512.569.9461 (cell)

In response to


pgsql-hackers by date

Next:From: ITAGAKI TakahiroDate: 2007-01-15 08:36:09
Subject: O_DIRECT support for Windows
Previous:From: Tom LaneDate: 2007-01-14 23:57:46
Subject: Re: xml type and encodings

pgsql-interfaces by date

Next:From: CNDate: 2007-01-15 12:01:56
Subject: Re: BCC55 and libpq 8.2
Previous:From: Jim NasbyDate: 2007-01-15 03:00:42
Subject: Re: Oracle Streams to pgsql

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group