Re: Как узнать установленное в SET STATISTICS <number>;

From: Alexey Klyukin <alexk(at)commandprompt(dot)com>
To: Anton <anton200(at)gmail(dot)com>
Cc: pgsql-ru-general(at)postgresql(dot)org
Subject: Re: Как узнать установленное в SET STATISTICS <number>;
Date: 2007-06-15 09:22:23
Message-ID: 20070615092223.GA6684@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ru-general

Anton wrote:

> Что-то тут не то...
>
> SELECT attname, attstattarget FROM pg_attribute WHERE
> attrelid='n_traffic'::regclass AND attname='collect_tme';
> attname | attstattarget
> --------------+---------------
> collect_time | -1
> (1 row)

Мне это говорит о том, что значение для данного столбца не установлено и
используется значение по-умолчанию (SHOW default_statistics_target).
Более подробно можно посмотреть в документации для ALTER TABLE:
http://www.postgresql.org/docs/8.2/interactive/sql-altertable.html

--
Alexey Klyukin http://www.commandprompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-ru-general by date

  From Date Subject
Next Message Anton 2007-06-15 09:46:42 Re: Как узнать установленное в SET STATISTICS <number>;
Previous Message Anton 2007-06-15 07:59:41 Re: Как узнать установленное в SET STATISTICS <number>;