pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan-Peter.Seifert@gmx.de
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: PGOPTIONS and default_tablespace
Date: Wed, 14 Jan 2009 11:44:40 +0100
Message-ID: <20090114104440.310500@gmx.net> (raw)
In-Reply-To: <dcc563d10901121209v61c13a76v2c7031a50cf8a0ac@mail.gmail.com>
References: <20090112093427.316400@gmx.net>
	<dcc563d10901121209v61c13a76v2c7031a50cf8a0ac@mail.gmail.com>

Hello Scott,

> Date: Mon, 12 Jan 2009 13:09:19 -0700
> From: "Scott Marlowe" <scott.marlowe@gmail.com>

> > without success I tried to set the default tablespace via the
> environment variable PGOPTIONS.
> >
> > My tries:
> > set PGOPTIONS="default_tablespace='pgdata'"
...

> I do this one of two ways usually.  Either I set the user / database
> to have a default tablespace permanently via alter user / database, or
> I put it at the top of my script I'm running.  PGOPTIONS isn't really
> the place I think of setting it myself.

The ALTER USER way works perfectly. Thanks a lot!

There's just one detail I'm not happy with.:
http://www.postgresql.org/docs/8.3/interactive/manage-ag-tablespaces.html

"If a database is created without specifying a tablespace for it, it uses the same tablespace as the template database it is copied from."

It would be really nice if the create db commands would follow the default_tablespace setting as well.

Thank you very much,

Peter Seifert

-- 
Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL 
für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a



view thread (5+ messages)

Message-ID: <20090114104440.310500@gmx.net>
Permalink:  ../20090114104440.310500@gmx.net/
Also on:    postgresql.org/message-id/20090114104440.310500@gmx.net

 · 

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-admin@postgresql.org
  Cc: Jan-Peter.Seifert@gmx.de, scott.marlowe@gmail.com
  Subject: Re: PGOPTIONS and default_tablespace
  In-Reply-To: <20090114104440.310500@gmx.net>

* 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