Discussion:
determining when a database was created
(too old to reply)
Ian Lipsky
2004-05-29 00:56:17 UTC
Permalink
is there a way to tell when a database was created? I've tried looking in
some of the postgres system tables but i didnt see any that looked like it
had a creation date.

I would have also looked at the date the data folder for the database was
created, but i didnt know which folder belonged to which database.

Is there a way to find out the date the db was created? thanks



---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org
Tom Lane
2004-05-31 04:37:40 UTC
Permalink
Post by Ian Lipsky
is there a way to tell when a database was created?
Nope, PG doesn't record that anywhere.

You could get an upper bound by looking for the oldest file mod time in
the database's files. This isn't completely reliable, but unless you're
in the habit of changing system catalogs as obscure as pg_am, it'd
probably be good enough.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org
Ian Lipsky
2004-06-01 00:49:31 UTC
Permalink
How can i determine which directory contains the database files? there are a few databases. I
though of doing that, but didnt know how to tell which directory belongs with which database.

thanks

----- Original Message -----
From: Tom Lane
To: Ian Lipsky <***@merk.caltech.edu>
Cc: pgsql-***@postgresql.org
Sent: Mon, 31 May 2004 00:37:40 -0400
Subject: Re: [ADMIN] determining when a database was created
Post by Ian Lipsky
is there a way to tell when a database was created?
Nope, PG doesn't record that anywhere.

You could get an upper bound by looking for the oldest file mod time in
the database's files. This isn't completely reliable, but unless you're
in the habit of changing system catalogs as obscure as pg_am, it'd
probably be good enough.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org
Tom Lane
2004-06-01 01:46:50 UTC
Permalink
Post by Ian Lipsky
How can i determine which directory contains the database files? there
are a few databases.
The database directory names correspond to the OID column of
pg_database. So:

SELECT datname, oid from pg_database;

(BTW, this is likely to change in 7.5 if tablespaces get done.)

See also the contrib/oid2name tool.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ***@postgresql.org
Somasekhar Bangalore
2004-06-01 04:27:54 UTC
Permalink
Hi All,

Is there a tool , where in i can convert data from postgres 7.3.2 to oracle 9i.

thanks in advance
som

-----Original Message-----
From: Tom Lane [mailto:***@sss.pgh.pa.us]
Sent: Tuesday, June 01, 2004 7:17 AM
To: Ian Lipsky
Cc: pgsql-***@postgresql.org
Subject: Re: [ADMIN] determining when a database was created
Post by Ian Lipsky
How can i determine which directory contains the database files? there
are a few databases.
The database directory names correspond to the OID column of
pg_database. So:

SELECT datname, oid from pg_database;

(BTW, this is likely to change in 7.5 if tablespaces get done.)

See also the contrib/oid2name tool.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ***@postgresql.org


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
Tom Lane
2004-06-01 05:32:24 UTC
Permalink
Post by Somasekhar Bangalore
Is there a tool , where in i can convert data from postgres 7.3.2 to oracle 9i.
No doubt Oracle Corp. would be pleased to assist you with this question.
I'm not sure why you expect a bunch of Postgres people to know the
answer, though.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ***@postgresql.org)
Gaetano Mendola
2004-06-02 22:42:38 UTC
Permalink
Post by Somasekhar Bangalore
Hi All,
Is there a tool , where in i can convert data from postgres 7.3.2 to oracle 9i.
http://www.oracle.com/support/index.html?contact.html
Post by Somasekhar Bangalore
thanks in advance
som
U'r welcome.


Regards
Gaeatano Mendola

Loading...