pg.ddx.io  pgsql-it-generale@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Gianni Ciolli <gianni.ciolli@2ndquadrant.it>
To: pgsql-it-generale@postgresql.org
Subject: Re: Novità -- problema Cinese in DB UTF8
Date: Mon, 12 Aug 2013 10:58:35 +0200
Message-ID: <20130812085835.GA13638@756b4.gi.lan> (raw)
In-Reply-To: <2698290.10501376296560195.JavaMail.defaultUser@defaultHost>
References: <2698290.10501376296560195.JavaMail.defaultUser@defaultHost>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-it-generale>

On Mon, Aug 12, 2013 at 10:36:00AM +0200, ciifrancesco@tiscali.it wrote:
> La domanda adesso è più semplice: come posso modificare Collate e Ctype di B per renderlo lo stesso di A?

Purtroppo non è possibile modificare LC_COLLATE e LC_CTYPE per un
database esistente. Occorre creare un nuovo database, specificando i
valori desiderati in fase di creazione:

  CREATE DATABASE ... LC_CTYPE = '...' LC_COLLATE = '...' TEMPLATE template0;

  (info: http://www.postgresql.org/docs/9.2/static/sql-createdatabase.html)

e poi ripristinare i vecchi dati nel nuovo database, con un backup
logico.

  (info: http://www.postgresql.org/docs/9.2/static/backup-dump.html)

Le versioni precedenti alla 8.4 non permettono di avere impostazioni
di LC_COLLATE e LC_CTYPE a livello di database: tutti i database dello
stesso cluster hanno le stesse impostazioni, decise durante la
creazione del cluster. D'altro canto tali versioni non sono ormai più
supportate e non dovrebbero quindi essere usate in produzione.

Cordiali saluti,
Dr. Gianni Ciolli - 2ndQuadrant Italia
PostgreSQL Training, Services and Support
gianni.ciolli@2ndquadrant.it | www.2ndquadrant.it

PGDay 2013 - 7° Conferenza Italiana su PostgreSQL
Prato, 25 ottobre 2013 | http://2013.pgday.it/


-- 
Sent via pgsql-it-generale mailing list (pgsql-it-generale@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-it-generale



view thread (5+ messages)  latest in thread

Message-ID: <20130812085835.GA13638@756b4.gi.lan>
Permalink:  ../20130812085835.GA13638@756b4.gi.lan/
Also on:    postgresql.org/message-id/20130812085835.GA13638@756b4.gi.lan

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-it-generale@postgresql.org
  Cc: gianni.ciolli@2ndquadrant.it
  Subject: Re: Novità -- problema Cinese in DB UTF8
  In-Reply-To: <20130812085835.GA13638@756b4.gi.lan>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox