dbTalk Databases Forums  

[BUGS] RC1 question of reloading data

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] RC1 question of reloading data in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Theodore Petrosky
 
Posts: n/a

Default [BUGS] RC1 question of reloading data - 11-11-2003 , 01:40 PM






I just downloaded and installed RC1 (7.4) on OSX 10.3.
Everything went smoothly for the config. make and
install.

while reloading the data (from pg_dump in 7.3) I
inadvertently screwed up. Or maybe not...

my dump file was as1.out so I...

psql < as1.out

I knew it was wrong the moment after I hit the return
as I did not specify the database (i did create it
with createdb). I did not get any error message. I
went looking to see if the data was pushed somewhere
bad like template1. But couldn't find it.

I did load my data correctly but, where did the first
set go? Did it just disappear into the ether?

Ted Petrosky

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply With Quote
  #2  
Old   
Tomas Szepe
 
Posts: n/a

Default Re: [BUGS] RC1 question of reloading data - 11-12-2003 , 07:11 AM






On Nov-11 2003, Tue, 11:38 -0800
Theodore Petrosky <tedpet5 (AT) yahoo (DOT) com> wrote:

Quote:
I just downloaded and installed RC1 (7.4) on OSX 10.3.
Everything went smoothly for the config. make and
install.

while reloading the data (from pg_dump in 7.3) I
inadvertently screwed up. Or maybe not...

my dump file was as1.out so I...

psql < as1.out
The data went into the $(whoami) database per default.

--
Tomas Szepe <szepe (AT) pinerecords (DOT) com>

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

http://archives.postgresql.org


Reply With Quote
  #3  
Old   
Theodore Petrosky
 
Posts: n/a

Default Re: [BUGS] RC1 question of reloading data - 11-12-2003 , 11:16 AM



So, I was logged on as postgres. but there is no
database called 'postgres' (or maybe I don't
understand the internals). Keep in mind that I am only
looking for understanding of the process... and I want
to make sure that doing this doesn't create problems
later.

Ted


--- Tomas Szepe <szepe (AT) pinerecords (DOT) com> wrote:
Quote:
On Nov-11 2003, Tue, 11:38 -0800
Theodore Petrosky <tedpet5 (AT) yahoo (DOT) com> wrote:

I just downloaded and installed RC1 (7.4) on OSX
10.3.
Everything went smoothly for the config. make and
install.

while reloading the data (from pg_dump in 7.3) I
inadvertently screwed up. Or maybe not...

my dump file was as1.out so I...

psql < as1.out

The data went into the $(whoami) database per
default.

--
Tomas Szepe <szepe (AT) pinerecords (DOT) com

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


Reply With Quote
  #4  
Old   
jerry
 
Posts: n/a

Default Re: [BUGS] RC1 question of reloading data - 11-22-2003 , 03:10 PM



Theodore Petrosky wrote:

Quote:
So, I was logged on as postgres. but there is no
database called 'postgres' (or maybe I don't
understand the internals). Keep in mind that I am only
looking for understanding of the process... and I want
to make sure that doing this doesn't create problems
later.

Ted
Postgres is not a 'database', it is the account name which owns the commands
and the directories with which and into which the database structure is
created using "initdb". If you followed the short installation version you
would have done something like this:

jerry$ su
root@jerry# mkdir /usr/local/pgsql/data
root@jerry# chown postgres /usr/local/pgsql/data
root@jerry# su - postgres
-bash-2.05b$ initdb -D /usr/local/pgsql/data

Then you could log in using psql and create your user name and db template,
etc.

--
GreyGeek

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

http://www.postgresql.org/docs/faqs/FAQ.html


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.