Re: ALTER SET DISTINCT vs. Oracle-like DBMS_STATS

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Itagaki Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: pgsql-hackers(at)postgresql(dot)org, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: ALTER SET DISTINCT vs. Oracle-like DBMS_STATS
Date: 2009-07-06 15:36:03
Message-ID: 20090706153603.GC5861@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Itagaki Takahiro escribió:

> It is just similar to Oracle's DBMS_STATS package.
> http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_stats.htm
> If it were, "ALTER TABLE tablename ALTER COLUMN 3rd-column SET DISITNCT 100"
> could be written as:
>
> INSERT INTO dbms_stats.columns(starelid, ataattnum, stadistinct)
> VALUES ('tablename'::regclass, 3, 100);
>
> Of course ALTER SET DISTINCT is easy-to-use, so it could be an alias for
> the above INSERT command.

Why wouldn't you implement this through reloptions? (I ask because the
syntax you propose above is awfully similar to what we used for
pg_autovacuum, which ended up being replaced by reloptions)

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2009-07-06 15:38:12 Re: WIP: generalized index constraints
Previous Message Mike Rylander 2009-07-06 15:25:35 Re: tsvector extraction patch