pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Igor Neyman <ineyman@perceptron.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: unlooged tables
Date: Wed, 07 Nov 2012 09:41:28 +0800
Message-ID: <5099BC48.6090202@ringerc.id.au> (raw)
In-Reply-To: <A76B25F2823E954C9E45E32FA49D70EC08EED80F@mail.corp.perceptron.com>
References: <A76B25F2823E954C9E45E32FA49D70EC08EED80F@mail.corp.perceptron.com>

On 11/07/2012 05:09 AM, Igor Neyman wrote:
>
> Hi,
>
>  
>
> Where in pg_catalog I can find, if the table was created as "unlogged"
> (or not)?
>
> As in: create unlogged table t1(c1 int);
>
> I can't seem to find this info in pg_catalog tables/views.
>
>  
>
> Tried psql with --E to describe (\d) unlogged table, but it was not
> helpful.
>

SELECT relpersistence FROM pg_class WHERE relname = 't1';

'u' is unlogged, 'p' is persistent, 't' is temporary.

See http://www.postgresql.org/docs/current/static/catalog-pg-class.html
<http://www.postgresql.org/docs/9.2/static/catalog-pg-class.html;

--
Craig Ringer

view thread (3+ messages)

Message-ID: <5099BC48.6090202@ringerc.id.au>
Permalink:  ../5099BC48.6090202@ringerc.id.au/
Also on:    postgresql.org/message-id/5099BC48.6090202@ringerc.id.au

 · 

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: ringerc@ringerc.id.au, ineyman@perceptron.com
  Subject: Re: unlooged tables
  In-Reply-To: <5099BC48.6090202@ringerc.id.au>

* 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