Re: How to pass around collation information

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: David Christensen <david(at)endpoint(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to pass around collation information
Date: 2010-06-03 14:41:55
Message-ID: 1275576115.17735.15.camel@fsopti579.F-Secure.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On tor, 2010-06-03 at 07:30 -0500, David Christensen wrote:
> How does collation relate to per-table/column encodings?

There is some connection between collations and character sets or
encodings, because a collation is tied to one of those, just as a
necessity of implementation (depending on implementation details). You
could have per-column (or per-some-other-small-unit) collation with a
global encoding, but a per-column encoding with a global collation
wouldn't work.

> For that matter, are per-table/column encodings spec,

Yes.

> and/or something that we're looking to implement down the line?

I don't think anyone is seriously planning that. But per-column
collations would have to come first, anyway.

Of course there is always the possibility that someone comes up with an
alternative plan that invalidates the above, but the above represents
the facts from the SQL standard and other implementations.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-06-03 14:54:13 Did we really want to force an initdb in beta2?
Previous Message Tom Lane 2010-06-03 14:22:31 Re: Allow wal_keep_segments to keep all segments