If I do rebuild it with initdb will I still have all my data?

Jacob

-----Original Message-----
From: Karel Zak [mailto:[EMAIL PROTECTED]]
Sent: 30. august 2001 11:03
To: Tatsuo Ishii
Cc: Jacob Vennervald Madsen; [EMAIL PROTECTED]
Subject: Re: Default encoding in database


On Thu, Aug 30, 2001 at 05:28:16PM +0900, Tatsuo Ishii wrote:
> > > How does the output from "psql -l" look like?
> >          List of databases
> >   Database  |  Owner   | Encoding
> > ------------+----------+-----------
> >  template0  | postgres | SQL_ASCII
> >  template1  | postgres | SQL_ASCII
> > Jacob
> 
> I don't know why your template1 DB's encoding is SQL_ASCII, but you
> need to change the encoding of the DB anyway.
> 
> try:
> 
> psql -c "update pg_database set encoding = 7 where datname =
> 'template1'" template1

IMHO more careful is re-build it by initdb with option -E LATIN1.

                KArel

-- 
 Karel Zak  <[EMAIL PROTECTED]>
 http://home.zf.jcu.cz/~zakkr/
 
 C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html

Reply via email to