PGOPTIONS and default_tablespace

Поиск
Список
Период
Сортировка
От Jan-Peter.Seifert@gmx.de
Тема PGOPTIONS and default_tablespace
Дата
Msg-id 20090112093427.316400@gmx.net
обсуждение исходный текст
Ответы Re: PGOPTIONS and default_tablespace
Re: PGOPTIONS and default_tablespace
Список pgsql-admin
Hello,

without success I tried to set the default tablespace via the environment variable PGOPTIONS.

My tries:
set PGOPTIONS="default_tablespace='pgdata'"
set PGOPTIONS=default_tablespace='pgdata'
set PGOPTIONS=default_tablespace(pgdata)
set PGOPTIONS=default_tablespace('pgdata')

When I try to connect to the server via psql I get the error message: "FATAL: invalid command-line arguments for server
process.HINT: Try "postgres --help" for more information." 

However, when I start the server with: postgres -c default_tablespace='pgdata'
it works.

What am I missing?

The OS is Windows xp Pro sp3. PostgreSQL version: 8.3.5.

BTW: Why aren't new databases created in the 'new' tablespace? Just because it's not a dbspace but a tablespace? It
wouldbe much more convenient if the createdb commands would make use of the default_tablespace setting as it's the case
withtables. 

Thank you very much,

Peter Seifert


--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Greg Sabino Mullane"
Дата:
Сообщение: Re: suggestions/hints for multimaster solution
Следующее
От: Thomas Markus
Дата:
Сообщение: Re: PGOPTIONS and default_tablespace