Unix Technical Forum

Problem in my backup command

This is a discussion on Problem in my backup command within the pgsql Novice forums, part of the PostgreSQL category; --> Hi Good morning. I am trying to implement the database backup through java. Initailly I have run the following ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Novice

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 11:10 PM
Sree Narayana
 
Posts: n/a
Default Problem in my backup command

Hi
Good morning.

I am trying to implement the database backup through java.

Initailly I have run the following command from windows prompt:

C:\>[path to pg_dump]\pg_dump.exe -h localhost -p 5432 -U postgres -F c -v
-f C:\[ptah to backup file]\db_backup.backup myDB

On running the above command, the following messages were seen on windows
command window (I have copied partial set of messages only).

pg_dump: reading schemas
pg_dump: reading user-defined functions
pg_dump: reading user-defined types
pg_dump: reading procedural languages
pg_dump: reading user-defined aggregate functions
pg_dump: reading user-defined operators
pg_dump: reading user-defined operator classes
pg_dump: reading user-defined conversions
pg_dump: reading user-defined tables
pg_dump: reading table inheritance information
pg_dump: reading rewrite rules
pg_dump: reading type casts
pg_dump: finding inheritance relationships
pg_dump: reading column info for interesting tables
pg_dump: finding the columns and types of table "pmam1"
pg_dump: finding the columns and types of table "pmcheck"
.................................................. .....
.................................................. .....
.................................................. .....
pg_dump: flagging inherited columns in subtables
pg_dump: reading indexes
pg_dump: reading indexes for table "pmam1"
pg_dump: reading indexes for table "pmcheck"
.................................................. .....
.................................................. .....
.................................................. .....
pg_dump: reading constraints
pg_dump: reading foreign key constraints for table "pmcheckms"
pg_dump: reading foreign key constraints for table "pmcheckos"
.................................................. .....
.................................................. .....
.................................................. .....
pg_dump: reading triggers
pg_dump: reading triggers for table "pmcheckms"
.................................................. .....
.................................................. .....
.................................................. .....
pg_dump: reading dependency data
pg_dump: saving encoding
pg_dump: saving database definition
pg_dump: dumping contents of table agentdefvalobject
pg_dump: dumping contents of table alert
pg_dump: dumping contents of table alertlogger
pg_dump: dumping contents of table alertpolicyobject
I am not sure whether these messages are eror messages or common. So to test
this, in my java program I have created an error stream and cought the
messages. Surprisingly it has cought same above messages.

So does it mean that all the above messages are error messages?
So is there any problem in the command I am running? Then what is the
correct command?

To suppres this messages, I can do that by removing "-f" from my above
command.

Please correct my above command.

Thanks
Sreeman

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 11:10 PM
Shoaib Mir
 
Posts: n/a
Default Re: Problem in my backup command

These are not the errors, this is because of the -v switch in your pg_dump
command and it ends up showing the verbose output for pg_dump process. Just
take out the -v swtich from the command and they will not show up.

Thanks,
--
Shoaib Mir
EnterpriseDB (www.enterprisedb.com)

On 9/8/06, Sree Narayana <sreeman007@gmail.com> wrote:
>
> Hi
> Good morning.
>
> I am trying to implement the database backup through java.
>
> Initailly I have run the following command from windows prompt:
>
> C:\>[path to pg_dump]\pg_dump.exe -h localhost -p 5432 -U postgres -F c -v
> -f C:\[ptah to backup file]\db_backup.backup myDB
>
> On running the above command, the following messages were seen on windows
> command window (I have copied partial set of messages only).
>
> pg_dump: reading schemas
> pg_dump: reading user-defined functions
> pg_dump: reading user-defined types
> pg_dump: reading procedural languages
> pg_dump: reading user-defined aggregate functions
> pg_dump: reading user-defined operators
> pg_dump: reading user-defined operator classes
> pg_dump: reading user-defined conversions
> pg_dump: reading user-defined tables
> pg_dump: reading table inheritance information
> pg_dump: reading rewrite rules
> pg_dump: reading type casts
> pg_dump: finding inheritance relationships
> pg_dump: reading column info for interesting tables
> pg_dump: finding the columns and types of table "pmam1"
> pg_dump: finding the columns and types of table "pmcheck"
> .................................................. ....
> .................................................. ....
> .................................................. ....
> pg_dump: flagging inherited columns in subtables
> pg_dump: reading indexes
> pg_dump: reading indexes for table "pmam1"
> pg_dump: reading indexes for table "pmcheck"
> .................................................. ....
> .................................................. ....
> .................................................. ....
> pg_dump: reading constraints
> pg_dump: reading foreign key constraints for table "pmcheckms"
> pg_dump: reading foreign key constraints for table "pmcheckos"
> .................................................. ....
> .................................................. ....
> .................................................. ....
> pg_dump: reading triggers
> pg_dump: reading triggers for table "pmcheckms"
> .................................................. ....
> .................................................. ....
> .................................................. ....
> pg_dump: reading dependency data
> pg_dump: saving encoding
> pg_dump: saving database definition
> pg_dump: dumping contents of table agentdefvalobject
> pg_dump: dumping contents of table alert
> pg_dump: dumping contents of table alertlogger
> pg_dump: dumping contents of table alertpolicyobject
> I am not sure whether these messages are eror messages or common. So to
> test this, in my java program I have created an error stream and cought the
> messages. Surprisingly it has cought same above messages.
>
> So does it mean that all the above messages are error messages?
> So is there any problem in the command I am running? Then what is the
> correct command?
>
> To suppres this messages, I can do that by removing "-f" from my above
> command.
>
> Please correct my above command.
>
> Thanks
> Sreeman
>
>
>
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:51 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com