Discussion:
Enabling --log-update
(too old to reply)
Dan Hrabarchuk
2004-10-04 20:57:29 UTC
Permalink
I need to track changes to my database while I'm doing a pg_dump.

I've found a reference to do this
http://www.arkeia.com/hotbackup/postgresql/ (see the second method).

It states that I need to put my database in the "mode --log-update"

I've tried to do this, but I keep getting an error saying that
--log-update needs an argument.

I can't find any documentation on this switch. Please help!

If I can't get this working my next alternative is to use either
http://gborg.postgresql.org/project/tablelog/projdisplay.php or
http://gborg.postgresql.org/project/audittrail/projdisplay.php

I need to have the database available while the dump is done.

Thanks is advance

Dan Hrabarchuk


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
Bruce Momjian
2004-10-05 01:59:24 UTC
Permalink
No idea what that is but I have never heard of those flags. My guess is
that is a hacked version of PostgreSQL.

---------------------------------------------------------------------------
Post by Dan Hrabarchuk
I need to track changes to my database while I'm doing a pg_dump.
I've found a reference to do this
http://www.arkeia.com/hotbackup/postgresql/ (see the second method).
It states that I need to put my database in the "mode --log-update"
I've tried to do this, but I keep getting an error saying that
--log-update needs an argument.
I can't find any documentation on this switch. Please help!
If I can't get this working my next alternative is to use either
http://gborg.postgresql.org/project/tablelog/projdisplay.php or
http://gborg.postgresql.org/project/audittrail/projdisplay.php
I need to have the database available while the dump is done.
Thanks is advance
Dan Hrabarchuk
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
--
Bruce Momjian | http://candle.pha.pa.us
***@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ***@postgresql.org
Mike Darretta
2004-10-05 20:13:54 UTC
Permalink
Does anyone have a suggestion on the best way to migrate data between
two slightly different tables? For example:

Table A
--------
id : integer
name : string
desc : string


Table B
--------
id : integer
name : string
date : date
summary : string

In this example, I would like to copy all the data from Table A into B,
using the desc column to populate the summary column.

Thanks,
Mike



---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ***@postgresql.org
banghe
2004-10-05 20:21:55 UTC
Permalink
One sql statement can solve this:

sql> isnert into table_b (id, name, summary) select id, name, desc from
table_a;

Banghe
Post by Mike Darretta
Does anyone have a suggestion on the best way to migrate data between
Table A
--------
id : integer
name : string
desc : string
Table B
--------
id : integer
name : string
date : date
summary : string
In this example, I would like to copy all the data from Table A into
B, using the desc column to populate the summary column.
Thanks,
Mike
---------------------------(end of broadcast)---------------------------
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org
Mike Darretta
2004-10-05 20:29:35 UTC
Permalink
Post by banghe
sql> isnert into table_b (id, name, summary) select id, name, desc
from table_a;
Banghe
Post by Mike Darretta
Does anyone have a suggestion on the best way to migrate data between
Table A
--------
id : integer
name : string
desc : string
Table B
--------
id : integer
name : string
date : date
summary : string
In this example, I would like to copy all the data from Table A into
B, using the desc column to populate the summary column.
Thanks,
Mike
---------------------------(end of broadcast)---------------------------
Thanks. I figured it was simple...


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match
Simon Riggs
2004-10-05 20:55:31 UTC
Permalink
Whoever wrote the Arkeia pages was very confused. I've communicated with
them previously, but no one was home.

My understanding is that those are MySQL flag settings, not PostgreSQL.
Whatever, they certainly don't work with PostgreSQL.

"Tracking changes" while you do a dump is exactly what PITR does in v8.0,
now in beta.

Best Regards,

Simon Riggs
-----Original Message-----
Sent: 05 October 2004 02:59
To: Dan Hrabarchuk
Subject: Re: [ADMIN] Enabling --log-update
No idea what that is but I have never heard of those flags. My guess is
that is a hacked version of PostgreSQL.
------------------------------------------------------------------
---------
Post by Dan Hrabarchuk
I need to track changes to my database while I'm doing a pg_dump.
I've found a reference to do this
http://www.arkeia.com/hotbackup/postgresql/ (see the second method).
It states that I need to put my database in the "mode --log-update"
I've tried to do this, but I keep getting an error saying that
--log-update needs an argument.
I can't find any documentation on this switch. Please help!
If I can't get this working my next alternative is to use either
http://gborg.postgresql.org/project/tablelog/projdisplay.php or
http://gborg.postgresql.org/project/audittrail/projdisplay.php
I need to have the database available while the dump is done.
Thanks is advance
Dan Hrabarchuk
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
--
Bruce Momjian | http://candle.pha.pa.us
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square,
Pennsylvania 19073
---------------------------(end of broadcast)---------------------------
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ***@postgresql.org so that your
message can get through to the mailing list cleanly

Loading...