Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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: Fri, 15 Jun 2007 12:22:23 +0300
  • Message-id: <20070615092223.GA6684@commandprompt.com> <text/plain>

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.




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group