If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > PostgreSQL > Streaming Replication Configuration Failure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-15-11, 11:42
CarlosinFL CarlosinFL is offline
Registered User
 
Join Date: Oct 2010
Location: Orlando, FL
Posts: 184
Streaming Replication Configuration Failure

I'm attempting today to get streaming replication from the Wiki configured on my two 9.1.2 servers:

Streaming Replication - PostgreSQL wiki

I'm on step #6

Quote:
6. Make a base backup by copying the primary server's data directory to the standby server.

Code:
 $ psql -c "SELECT pg_start_backup('label', true)"
$ rsync -a ${PGDATA}/ standby:/srv/pgsql/standby/ --exclude postmaster.pid
$ psql -c "SELECT pg_stop_backup()"
When I attempt the 1st command listed on my primary (master) server, I get this error:

Code:
carlos@db1:~$ psql -c "SELECT pg_start_backup('label', true)"
psql: FATAL:  database "carlos" does not exist
Now I'm showing they want me to use the -c switch to connect but no database is defined so is it implied that I need to add 'postgres' maintenance database in there or something else?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On