pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joel Fradkin <jfradkin@wazagua.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
To: 'Dario' <dario_d_s@unitech.com.ar>
Cc: 'Hannes Dorbath' <light@theendofthetunnel.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Determine PG version used for initdb
Date: Wed, 20 Jul 2005 10:33:53 -0400
Message-ID: <002801c58d38$0e1ca350$797ba8c0@jfradkin> (raw)
In-Reply-To: <15725.1121868322@sss.pgh.pa.us>

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




view thread (12+ messages)  latest in thread

Message-ID: <002801c58d38$0e1ca350$797ba8c0@jfradkin>
Permalink:  ../002801c58d38$0e1ca350$797ba8c0@jfradkin/
Also on:    postgresql.org/message-id/002801c58d38$0e1ca350$797ba8c0@jfradkin

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: jfradkin@wazagua.com, tgl@sss.pgh.pa.us, dario_d_s@unitech.com.ar, light@theendofthetunnel.de
  Subject: Re: Determine PG version used for initdb
  In-Reply-To: <002801c58d38$0e1ca350$797ba8c0@jfradkin>
  References: <15725.1121868322@sss.pgh.pa.us> <002801c58d38$0e1ca350$797ba8c0@jfradkin>

* 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