Re: Better name/syntax for "online" index creation

From: Hannu Krosing <hannu(at)skype(dot)net>
To: Gregory S Stark <gsstark(at)MIT(dot)EDU>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Better name/syntax for "online" index creation
Date: 2006-07-26 12:00:56
Message-ID: 1153915256.2934.30.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ühel kenal päeval, K, 2006-07-26 kell 06:40, kirjutas Gregory S Stark:
> The DB2 handbook says "Tables can now be reorganized online with almost full
> acess to the table allowed" but their syntax does not use the word "online".

Does this reorganizing refer to what we do with CLUSTER ?

I'd really love to be able to CLUSTER a table with ALLOW WRITE ACCESS.

currently this requires quite a complicated dance with views,triggers,
logfiles and changing access funtions.

> They actually support three modes:
>
> ALLOW NO ACCESS
> ALLOW READ ACCESS
> ALLOW WRITE ACCESS
>
> I'm not sure where that leaves us. The word "online" seems deeply ingrained in
> the database vocabulary for this feature but there's a certain amount of
> SQLishness in the DB2 syntax too.
>
> DB2 also supports some other nice options like interrupting an index build and
> then resuming it later. If there's demand that seems like something we
> would be
> able to support too. The same infrastructure might be useful for
> suspending and
> resuming vacuums on large tables too.
>
> --
> Gregory Stark
> EnterpriseDB http://www.enterprisedb.com
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
> choose an index scan if your joining column's datatypes do not
> match
--
----------------
Hannu Krosing
Database Architect
Skype Technologies OÜ
Akadeemia tee 21 F, Tallinn, 12618, Estonia

Skype me: callto:hkrosing
Get Skype for free: http://www.skype.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jonah H. Harris 2006-07-26 12:04:58 Re: INSERT ... RETURNING in 8.2
Previous Message Tatsuo Ishii 2006-07-26 11:24:19 Re: pgbench enhancements