pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carlo Stonebanks <stonec.register@sympatico.ca>
To: 'Jim Nasby' <decibel@decibel.org>
Cc: pgsql-interfaces@postgresql.org
Cc: 'PGSQL Hackers' <pgsql-hackers@postgresql.org>
Subject: Re: ODBC: how to change search_path in DSN?
Date: Mon, 15 Jan 2007 10:14:18 -0500
Message-ID: <011d01c738b7$d4092c10$6f05a8c0@Mars> (raw)
In-Reply-To: <A9335FA4-4A99-40E1-96B9-B4E0B36455DC@decibel.org>
References: <em99mi$1buj$1@news.hub.org>
	<A9335FA4-4A99-40E1-96B9-B4E0B36455DC@decibel.org>

Hi Jim,

The solution was to put " set search_path=new_path" in Connection Settings
in the ODBC configuration (on Page 2 of the dialog).

Carlo

-----Original Message-----
From: Jim Nasby [mailto:decibel@decibel.org] 
Sent: January 14, 2007 10:07 PM
To: Carlo Stonebanks
Cc: pgsql-interfaces@postgresql.org; PGSQL Hackers
Subject: Re: [INTERFACES] ODBC: how to change search_path in DSN?

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@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)





view thread (3+ messages)

Message-ID: <011d01c738b7$d4092c10$6f05a8c0@Mars>
Permalink:  ../011d01c738b7$d4092c10$6f05a8c0@Mars/
Also on:    postgresql.org/message-id/011d01c738b7$d4092c10$6f05a8c0@Mars

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: stonec.register@sympatico.ca, decibel@decibel.org, pgsql-hackers@postgresql.org
  Subject: Re: ODBC: how to change search_path in DSN?
  In-Reply-To: <011d01c738b7$d4092c10$6f05a8c0@Mars>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox