Re: default_tablespace

From: David Kerr <dmk(at)mr-paradox(dot)net>
To: carl clemens <carlclemens1(at)yahoo(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: default_tablespace
Date: 2011-02-17 17:32:04
Message-ID: 20110217173204.GA14588@mr-paradox.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, Feb 16, 2011 at 03:59:13PM -0800, carl clemens wrote:
- Hi Hackers,
-
- After reviewing docs and searching web
- cannot find out how to determine the default tablespace
- of a user?
-
- Like:
-
- select spcname from blab where roloid = 1111;
-
- Is this possible?
-
- Thank you for your time.
-

It doesn't appear to me that default tablespaces are assigned to a user, they're
assigned to a database.

A user can set the variable default_tablespace in their session to over-ride the
database default, but that wouldn't be stored anywhere in the database (it's a client
variable).

you can find the OID for the default tablespace for a specific database in pg_database.

more info:
http://www.postgresql.org/docs/9.0/static/runtime-config-client.html#GUC-DEFAULT-TABLESPACE

Dave

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2011-02-17 17:33:03 Re: Debian readline/libedit breakage
Previous Message Lukas Eder 2011-02-17 17:31:04 Re: Fwd: [JDBC] Weird issues when reading UDT from stored function