Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id EBDDE6327E0 for ; Thu, 13 May 2010 12:26:47 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 70915-10 for ; Thu, 13 May 2010 15:26:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id E182F63224B for ; Thu, 13 May 2010 12:26:40 -0300 (ADT) Received: by gyg13 with SMTP id 13so617531gyg.19 for ; Thu, 13 May 2010 08:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=krq3PV1bQtX+GOr8++DEbqZRsr6FADEiBE2r/fY4HKk=; b=ebwmSllBXbAdSruzuVYymbE7KF65s3S9HieLGhOSMSX5MAkLK/uAp54TPPU63kypse ZxU3daULq4G3h6NOlCUaUOpSqhQjOARZXcGV8MtIfyIEAubgbbIjHhy6sKYS9zYTfkRt SfovSYYM9aYB/E2KKtatyQRT3491XQGO12WzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=qi01aSCfNrcPqTPMyQHAyLwSQ/mx1BevG0KJVbu5s5busvle3VF/mkGCD/92RwVbm0 Vx1cb6wyiqFVNvppAAgw1yP9y30z/DJPQSHjTJGymlVQUrWCKLKxi9wEzltwesVnIAxe ofSRkgFEOFvmOLiB2N/XsYnPdOIToZzRjcLco= MIME-Version: 1.0 Received: by 10.150.160.1 with SMTP id i1mr416271ybe.367.1273764399914; Thu, 13 May 2010 08:26:39 -0700 (PDT) Received: by 10.150.140.1 with HTTP; Thu, 13 May 2010 08:26:39 -0700 (PDT) In-Reply-To: <553.1273763303@sss.pgh.pa.us> References: <553.1273763303@sss.pgh.pa.us> Date: Thu, 13 May 2010 11:26:39 -0400 Message-ID: Subject: Re: "supplementary storage table"? From: Robert Haas To: Tom Lane Cc: pgsql-docs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201005/16 X-Sequence-Number: 5513 On Thu, May 13, 2010 at 11:08 AM, Tom Lane wrote: > Okay, who decided $SUBJECT was a good locution for "toast table"? > I find two or three usages of that in the CREATE/ALTER TABLE reference > pages, without definition. =A0Everywhere else it's "toast table". > We do not need people deciding to invent their own terminology for > the docs. Well, according to git, the first mention of it was here: commit 43bb6b91b229ad859358c7365c941f55a74ae7e9 Author: Bruce Momjian Date: Tue Mar 5 05:33:31 2002 +0000 I attach a version of my toast-slicing patch, against current CVS (current as of a few hours ago.) This patch: 1. Adds PG_GETARG_xxx_P_SLICE() macros and associated support routines. 2. Adds routines in src/backend/access/tuptoaster.c for fetching only necessary chunks of a toasted value. (Modelled on latest changes to assume chunks are returned in order). 3. Amends text_substr and bytea_substr to use new methods. It now handles multibyte cases -and should still lead to a performance improvement in the multibyte case where the substring is near the beginning of the string. 4. Added new command: ALTER TABLE tabname ALTER COLUMN colname SET STORAGE {PLAIN | EXTERNAL | EXTENDED | MAIN} to parser and documented i= n alter-table.sgml. (NB I used ColId as the item type for the storage mode string, rather than a new production - I hope this makes sense!). All this does is sets attstorage for the specified column. 4. AlterTableAlterColumnStatistics is now AlterTableAlterColumnFlags an= d handles both statistics and storage (it uses the subtype code to distinguish). The previous version of my patch also re-arranged other code in backend/commands/command.c but I have dropped that from this patch.(I plan to return to it separately). 5. Documented new macros (and also the PG_GETARG_xxx_P_COPY macros) in xfunc.sgml. ref/alter_table.sgml also contains documentation for ALTER COLUMN SET STORAGE. John Gray --=20 Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise Postgres Company