Re: Catastrophic changes to PostgreSQL 8.4

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Adrian Klaver <aklaver(at)comcast(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, Kern Sibbald <kern(at)sibbald(dot)com>
Subject: Re: Catastrophic changes to PostgreSQL 8.4
Date: 2009-12-03 13:44:32
Message-ID: 407d949e0912030544o215b125ar6911717c8c3e33d1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

[moving this point to -hackers]

On Wed, Dec 2, 2009 at 10:49 PM, Adrian Klaver <aklaver(at)comcast(dot)net> wrote:
> When I tried the above Postgres did not ignore the command, instead it gave me
> the following error and did not create the database:
> CREATE DATABASE bacula ENCODING 'SQL_ASCII';
> ERROR:  new encoding (SQL_ASCII) is incompatible with the encoding of the
> template database (UTF8)
> HINT:  Use the same encoding as in the template database, or use template0 as
> template.

Actually I'm kind of surprised at this. I don't see a reason not to
allow converting a template to SQL_ASCII from any encoding given that
we're going to allow them to put random bytes into the database
afterwards. Why not let them start with random bytes?

--
greg

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message mrciken 2009-12-03 13:49:13 Daily migration on Postgresql
Previous Message Alvaro Herrera 2009-12-03 13:42:39 Re: pg_attribute.attnum - wrong column ordinal?

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2009-12-03 14:09:56 Re: RFC for adding typmods to functions
Previous Message Alvaro Herrera 2009-12-03 13:42:39 Re: pg_attribute.attnum - wrong column ordinal?