Re: Determine PG version used for initdb

From: "Joel Fradkin" <jfradkin(at)wazagua(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "'Dario'" <dario_d_s(at)unitech(dot)com(dot)ar>
Cc: "'Hannes Dorbath'" <light(at)theendofthetunnel(dot)de>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Determine PG version used for initdb
Date: 2005-07-20 14:33:53
Message-ID: 002801c58d38$0e1ca350$797ba8c0@jfradkin
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)wazagua(dot)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(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Tom Lane
Sent: Wednesday, July 20, 2005 10:05 AM
To: Dario
Cc: Hannes Dorbath; pgsql-admin(at)postgresql(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Fuhr 2005-07-20 14:44:22 Re: Determine PG version used for initdb
Previous Message Hannes Dorbath 2005-07-20 14:21:25 Re: Determine PG version used for initdb