Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 6304CB5DC99 for ; Mon, 5 Sep 2011 20:33:23 -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 39126-01-9 for ; Mon, 5 Sep 2011 23:33:12 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 5FB29B5DECE for ; Mon, 5 Sep 2011 20:33:12 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p85NX9F26135; Mon, 5 Sep 2011 19:33:09 -0400 (EDT) From: Bruce Momjian Message-Id: <201109052333.p85NX9F26135@momjian.us> Subject: Re: Couple document fixes In-Reply-To: <20110905232916.GK3924@fetter.org> To: David Fetter Date: Mon, 5 Sep 2011 19:33:09 -0400 (EDT) CC: Alvaro Herrera , Kevin Grittner , Thom Brown , PostgreSQL-development X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/216 X-Sequence-Number: 194405 David Fetter wrote: > > > > I am unsure on that one. We have many 'char' mentions in > > > > catalog.sgml, and I don't see any of them shown as '"char"'. > > > > (Wow, we should have just called this type char1, but I think > > > > that name came from Berkeley!) The big problem is that the > > > > pg_type name is really "char" _without_ quotes. > > > > > > One idea is to rename the type to something else. We could keep > > > "char" as an alias for backwards compatibility, but use the new > > > name in system catalogs, and document it as the main name of the > > > type. > > > > > > Discussed the idea a bit on IM with Bruce, but couldn't find any > > > really good alternative. Idea floated so far: > > > > > > * byte (seems pretty decent to me) * octet (though maybe people > > > would expect it'd output as a number) * char1 (looks ugly, but > > > then we have int4 and so on) * achar (this one is just plain > > > weird) > > > > > > None seems great. Thoughts? > > > > Any new ideas on how to document our "char" data type? > > What say we document it as deprecated and remove the silly thing over > the next three releases or so? It's deep in the realm of > micro-optimization, and of a kind we well and truly don't need any > more, assuming we ever did. > > Alternate proposals would involve a more aggressive deprecation and > removal schedule. ;) Uh, pg_class uses it: relpersistence | "char" | not null relkind | "char" | not null -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +