Re: Determine PG version used for initdb

Поиск
Список
Период
Сортировка
От Joel Fradkin
Тема Re: Determine PG version used for initdb
Дата
Msg-id 002801c58d38$0e1ca350$797ba8c0@jfradkin
обсуждение исходный текст
Ответ на Re: Determine PG version used for initdb  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Determine PG version used for initdb  (Hannes Dorbath <light@theendofthetunnel.de>)
Список pgsql-admin
Not being a postgres guru can you give me a simple plan to follow to re init
db.
I am running on linux redhat as4.
I have links to spindles for my wal and my data.
I am on 8.0.3, but did not initdb the database, so security issues have not
been addressed.
I can do a dump, initdb (this is where I am not 100% sure what to do, to get
rid of the existing intdb stuff) and do a restore.

I am guessing I would just stop postgres delete the data folder in
/var/lib/pgsql.

Go into the pgsql folder and do a initdb database name? prefer to do it
Unicode if I can get my drivers and such figured and tested (still having
serious issues there).

Re-link the wal and base folders

And I am done?

What would be the exact syntax for the initdb command?


Joel Fradkin

Wazagua, Inc.
2520 Trailmate Dr
Sarasota, Florida 34243
Tel.  941-753-7111 ext 305

jfradkin@wazagua.com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc
 This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information.  Any unauthorized review,
use, disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.




-----Original Message-----
From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Tom Lane
Sent: Wednesday, July 20, 2005 10:05 AM
To: Dario
Cc: Hannes Dorbath; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Determine PG version used for initdb

> That tells the server version running, but does it tell the initdb
> binary version used to init the cluster?

Normally there's not any difference between dot-release initdb's.
In this case there is; read the 8.0.3 release notes:
http://developer.postgresql.org/docs/postgres/release.html#RELEASE-8-0-3
You could determine which was used by looking at the declared arguments
of the conversion functions.

            regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


В списке pgsql-admin по дате отправления:

Предыдущее
От: Hannes Dorbath
Дата:
Сообщение: Re: Determine PG version used for initdb
Следующее
От: Michael Fuhr
Дата:
Сообщение: Re: Determine PG version used for initdb