473,479 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Type of application that use PostgreSQL

Hello,

I am in the process to define if our product can use PostgreSQL.

Do you know what type of application use PostgreSQL, and also what is the
size of the database for these projects?

Our application has a table with more than 300000 rows. There are complexe
query with many joins. And we must respect some time constraints. Also the
application is running 24 hours per day, so the product must be stable, with
good recovery in case of problems.

Thank you,
Jean-Marc

__________________________________________________ _______________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 12 '05 #1
20 2389
On Thursday 02 October 2003 09:10, My Internet wrote:
Hello,

I am in the process to define if our product can use PostgreSQL.

Do you know what type of application use PostgreSQL, and also what is the
size of the database for these projects?
Everything from small-business apps (which I use it for), web-based apps,
large-scale scientific data processing, GIS support, substantial parts of the
DNS system...
Our application has a table with more than 300000 rows. There are complexe
query with many joins. And we must respect some time constraints. Also the
application is running 24 hours per day, so the product must be stable,
with good recovery in case of problems.


People have been saying it's inconvenient to upgrade between versions when
dealing with 100GB+ databases, so if 3million rows is your largest table,
that might put things in perspective.

The query planner generally makes a good job optimising. Three things you
probably want to be aware of though:
- PG is very strict on types - if you have an int2 field compared to an int4
value, you will want to cast the int4 to make sure an index is used.
- Use of the JOIN keyword forces joins in the order you specify them - I
believe this is configurable in 7.4
- Use of IN (...) with many values can be slow. Recommended procedure is to
rewrite using EXISTS, although again I believe the situation is much improved
in 7.4
- count(*) isn't optimised - it has to scan the table.
- you will need to tune the values in the configuration file, they are set
quite small to start with.

Stability is good. If you're feeling cautious, you could use 7.3.4 rather than
the forthcoming 7.4. It's had hot-backup (i.e. no need to stop the db to get
a valid snapshot) for ages. It has a write-ahead-log to replay active
transactions in case of a crash, and a couple of replication options.

Some of its high points I would say are:
- good proedural language support
- many client interfaces (C,C++,Perl,Python,PHP,JDBC,ODBC...)
- good compliance with SQL standards
- very helpful mailing lists

In short, I'd recommend spending a couple of days installing and running some
tests - the beauty of open-source is that it costs you nothing to try it out.
--
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly

Nov 12 '05 #2
Quoting Richard Huxton <de*@archonet.com>:
[stuff deleted] Stability is good. If you're feeling cautious, you could use 7.3.4 rather
than
the forthcoming 7.4. It's had hot-backup (i.e. no need to stop the db to get

a valid snapshot) for ages. It has a write-ahead-log to replay active
transactions in case of a crash, and a couple of replication options. [stuff deleted] --
Richard Huxton
Archonet Ltd

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to ma*******@postgresql.org so that your
message can get through to the mailing list cleanly


Is the ability to do "hot-backups" removed from 7.4.x? I haven't read the all
of the beta3 docs yet.
--
Keith C. Perry
Director of Networks & Applications
VCSN, Inc.
http://vcsn.com

____________________________________
This email account is being host by:
VCSN, Inc : http://vcsn.com

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

Nov 12 '05 #3
On Thu, Oct 02, 2003 at 14:55:04 -0400,
Network Administrator <ne******@vcsn.com> wrote:

Is the ability to do "hot-backups" removed from 7.4.x? I haven't read the all
of the beta3 docs yet.


No. pg_dump still gives you a consistant dump.

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

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

Nov 12 '05 #4
On Thursday 02 October 2003 19:55, Network Administrator wrote:
Quoting Richard Huxton <de*@archonet.com>:
[stuff deleted]

Stability is good. If you're feeling cautious, you could use 7.3.4 rather
than
the forthcoming 7.4. It's had hot-backup (i.e. no need to stop the db to
get

a valid snapshot) for ages. It has a write-ahead-log to replay active
transactions in case of a crash, and a couple of replication options.
Is the ability to do "hot-backups" removed from 7.4.x? I haven't read the
all of the beta3 docs yet.


As Bruno says - no (and I can't imagine why anyone would).

I was merely suggesting the fact that the 7.3 series is at it's fourth minor
revision means it's received a lot more testing, whereas 7.4.0 still has the
paint wet on it.

--
Richard Huxton
Archonet Ltd

---------------------------(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

Nov 12 '05 #5
On Fri, 3 Oct 2003, Richard Huxton wrote:
On Thursday 02 October 2003 19:55, Network Administrator wrote:
Quoting Richard Huxton <de*@archonet.com>:
[stuff deleted]

Stability is good. If you're feeling cautious, you could use 7.3.4 rather
than
the forthcoming 7.4. It's had hot-backup (i.e. no need to stop the db to
get

a valid snapshot) for ages. It has a write-ahead-log to replay active
transactions in case of a crash, and a couple of replication options.

Is the ability to do "hot-backups" removed from 7.4.x? I haven't read the
all of the beta3 docs yet.


As Bruno says - no (and I can't imagine why anyone would).

I was merely suggesting the fact that the 7.3 series is at it's fourth minor
revision means it's received a lot more testing, whereas 7.4.0 still has the
paint wet on it.


Hot backup? Postgres 7.3 can't really do hot-backup! The only way
to backup the database is to dump the entire thing. Two minites later this
backup is only news and not exactly hot. Having to shut your database down
to back it up would be down right nasty! But Since we don't yet have an
update log. Even a dump will not get you back to the good point before
your disk died.
Mind you the truth is the downdate log should work for most cases.
So take regualar backups... and use raid. I mean how often does an entire
raid array fail at once?
I would love to see an Update Log on postgres. That and true
replications (dual master) are the two biggest missing features in
Postgres. If we had them we could run circles round mysql and oracle as
well.
Its not as if an update log is a new idea. Our old system (that we
are replacing with postgres) has an update log. So you can always get from
the last backup to now using it. (Its a TPS Bull System) The update logs
last about 2 weeks if we forget to backup! (Since we have to shutdown to
backup we only do a full backup once a week) but apparently we have never
had to use the update logs in 9 years......
Maybe it would be a good idea to start a mailinglist marked
pgsql-backup since this subject comes up so often.

Peter Childs
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #6
Peter Childs wrote:
Hot backup? Postgres 7.3 can't really do hot-backup! The only way
to backup the database is to dump the entire thing. Two minites later this
backup is only news and not exactly hot. Having to shut your database down
to back it up would be down right nasty! But Since we don't yet have an
update log. Even a dump will not get you back to the good point before
your disk died.
Mind you the truth is the downdate log should work for most cases.
So take regualar backups... and use raid. I mean how often does an entire
raid array fail at once?
There was a clever solution posted here for replicating database in near real
time. Use RAID for data directory. For backup break the RAID and pick up the
data image from broken part. That was clever one.
I would love to see an Update Log on postgres. That and true
replications (dual master) are the two biggest missing features in
Postgres. If we had them we could run circles round mysql and oracle as
well.


Postgresql do have update logs in form of WAL. However it can not do PITR with
log archiving if a node in cluster goes down for extended period. WAL does not
handle these situations in current design. Precisely, PITR is the feature that
implements this functonality.

Furthermore, mysql has replication is completely unrelated issue. Mysql didn't
have transactions so implementing replication didn't have so many constraints.
Postgresql has transactions for ages and it's replication has to support them
fully. That's what causing delays in true postgresql replication.

Design a mysql replicated cluster in a heavy concurrent update database and have
one of the node fail it. Let's see how mysql rolls back. ( FWIW, mysql rollback
time is proprotional to data in a transaction. So rolling back a 100MB
transaction isn't exactly so fast)
Shridhar

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

Nov 12 '05 #7
Peter Childs wrote:
Hot backup? Postgres 7.3 can't really do hot-backup! The only way
to backup the database is to dump the entire thing. Two minites later this
backup is only news and not exactly hot. Having to shut your database down
to back it up would be down right nasty! But Since we don't yet have an
update log. Even a dump will not get you back to the good point before
your disk died.
Isn't the definition of "hot-backup" the ability to perform a backup
while the database is still on-line engaging in transactions? I think
you're substituting "hot-backup" for point-in-time recovery...
Mind you the truth is the downdate log should work for most cases.
So take regualar backups... and use raid. I mean how often does an entire
raid array fail at once?
True...and assuming you're not running just RAID 0. But, as you say,
PITR could recover from such nasty things as an unqualified DELETE or
UPDATE. Disaster recovery from PITR logs being archived over a WAN or
a replicated slave would also be nice, in the event hurricane "Foo"
wipes out the data center. I haven't played around with the
replication options yet, so that might be less of a problem. But
without PITR, there's a window of risk in which a programming error or
a keying error could set you back to the last backup, whenever that was...
I would love to see an Update Log on postgres. That and true
replications (dual master) are the two biggest missing features in
Postgres. If we had them we could run circles round mysql and oracle as
well.


Amen.

Mike Mascari
ma*****@mascari.com

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #8
On Fri, 2003-10-03 at 04:26, Shridhar Daithankar wrote:
Peter Childs wrote: [snip] Postgresql do have update logs in form of WAL. However it can not do PITR with
log archiving if a node in cluster goes down for extended period. WAL does not
handle these situations in current design. Precisely, PITR is the feature that
implements this functonality.


For those not in the know, PITR is Point In Time Recovery.

And yes, that capability has been around for 20+ years on mainframes
and minicomputers, but they were/are funded a lot higher than the
PostgreSQL volunteers are!

--
-----------------------------------------------------------------
Ron Johnson, Jr. ro***********@cox.net
Jefferson, LA USA

"Python is executable pseudocode; Perl is executable line noise"
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postgresql.org

Nov 12 '05 #9
On Fri, 3 Oct 2003, Ron Johnson wrote:
On Fri, 2003-10-03 at 04:26, Shridhar Daithankar wrote:
Peter Childs wrote: [snip]
Postgresql do have update logs in form of WAL. However it can not do PITR with
log archiving if a node in cluster goes down for extended period. WAL does not
handle these situations in current design. Precisely, PITR is the feature that
implements this functonality.


No it does not. WAL is Down-Date Logs not update logs. WAL will
enable you to rewind to the beginning of all currently running
transactions after a crash. Ie roll-back not roll-forward.

For those not in the know, PITR is Point In Time Recovery.

And yes, that capability has been around for 20+ years on mainframes
and minicomputers, but they were/a`re funded a lot higher than the
PostgreSQL volunteers are!


It was planned for 7.4 so when is it going to happern now it has
missed 7.4?

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

Nov 12 '05 #10
Peter Childs wrote:
On Fri, 3 Oct 2003, Ron Johnson wrote:

On Fri, 2003-10-03 at 04:26, Shridhar Daithankar wrote:
Peter Childs wrote:


[snip]
Postgresql do have update logs in form of WAL. However it can not do PITR with
log archiving if a node in cluster goes down for extended period. WAL does not
handle these situations in current design. Precisely, PITR is the feature that
implements this functonality. No it does not. WAL is Down-Date Logs not update logs. WAL will
enable you to rewind to the beginning of all currently running
transactions after a crash. Ie roll-back not roll-forward.


Right. But if WAL files from one host are dropped to WAL log dir. of another
host, it will play them provided they have identical structure. IIRC there are
some replication solution which works on this basis.For those not in the know, PITR is Point In Time Recovery.

And yes, that capability has been around for 20+ years on mainframes
and minicomputers, but they were/a`re funded a lot higher than the
PostgreSQL volunteers are!

It was planned for 7.4 so when is it going to happern now it has
missed 7.4?


7.5. Lots of things have missed 7.4 boat. PITR, nested transactions, native
windows ports etc. So hopefully 7.5 would have very small development cycle as
most of the features already have work going on.

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

Nov 12 '05 #11
Shridhar Daithankar <sh*****************@persistent.co.in> writes:
Peter Childs wrote:
Postgresql do have update logs in form of WAL.
No it does not. WAL is Down-Date Logs not update logs. WAL will
enable you to rewind to the beginning of all currently running
transactions after a crash. Ie roll-back not roll-forward.
Right.


Wrong. Peter, don't state something so authoritatively when you
obviously haven't looked at the code. Postgres does not do roll-back,
ever. (We don't need it because of MVCC.) We use WAL for roll
*forward* from the last checkpoint after a crash. Any updates that
didn't make it to disk before the crash are restored from WAL.

All that we basically need for PITR is to provide management code that
lets old WAL segments get archived off to tape (or wherever) rather than
deleted, plus some kind of control that lets the roll-forward process be
stopped at the desired point-in-time rather than necessarily running to
the end of the available WAL data. This isn't a trivial amount of code,
but there's no great conceptual difficulty either.

regards, tom lane

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

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

Nov 12 '05 #12
Quoting Richard Huxton <de*@archonet.com>:
On Thursday 02 October 2003 19:55, Network Administrator wrote:
Quoting Richard Huxton <de*@archonet.com>:
[stuff deleted]

Stability is good. If you're feeling cautious, you could use 7.3.4 rather than
the forthcoming 7.4. It's had hot-backup (i.e. no need to stop the db to
get

a valid snapshot) for ages. It has a write-ahead-log to replay active
transactions in case of a crash, and a couple of replication options.

Is the ability to do "hot-backups" removed from 7.4.x? I haven't read the
all of the beta3 docs yet.


As Bruno says - no (and I can't imagine why anyone would).

I was merely suggesting the fact that the 7.3 series is at it's fourth minor

revision means it's received a lot more testing, whereas 7.4.0 still has the

paint wet on it.

--
Richard Huxton
Archonet Ltd


I agree and I figured that was the case ("hot backups" is one of the reasons I
choose Pg over some other DBs) but I wanted to be clear- more so for the archives.

The other thing is that I suspect there might be some confusion as to the
difference between "hot backups" (dump of data does not require DB to be "down")
and "online backups" (dump of data is not needed because on the disk state of
the DB is current to some "recent" time). To be perfectly honest, I've only had
to use a pg_dump file once in well over 5 years (and that was recent- it was
actually posted here) in conditions where the system with NOT proper shutdown
(at the OS or application layer). PG simply does its "housekeeping" when the
backend started up. Of course, running the VACUUM ANALYSE help confirm more
that was indeed true. I would think that is some sort of luck because as far as
I know Pg is not able to do online backups.

In any event, "hot backups" is very important to have and use for more and more
people these days. I had a conversation with a Progress guy yesterday who I
know was grimacing when I told him I didn't need to take Pg down for backup...

Oh what a feeling :)
--
Keith C. Perry
Director of Networks & Applications
VCSN, Inc.
http://vcsn.com

____________________________________
This email account is being host by:
VCSN, Inc : http://vcsn.com

---------------------------(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

Nov 12 '05 #13
On Fri, 2003-10-03 at 13:32, Network Administrator wrote:
Quoting Richard Huxton <de*@archonet.com>:
On Thursday 02 October 2003 19:55, Network Administrator wrote:
Quoting Richard Huxton <de*@archonet.com>:
> [stuff deleted]
[snip] The other thing is that I suspect there might be some confusion as to the
difference between "hot backups" (dump of data does not require DB to be "down")
and "online backups" (dump of data is not needed because on the disk state of
the DB is current to some "recent" time). To be perfectly honest, I've only had


Huh? This is the 1st time that I've ever seen mention that there
is a distinction between "hot" and "on-line" backup.

--
-----------------------------------------------------------------
Ron Johnson, Jr. ro***********@cox.net
Jefferson, LA USA

"Fair is where you take your cows to be judged."
Unknown
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #14
On Fri, 2003-10-03 at 09:32, Tom Lane wrote:
Shridhar Daithankar <sh*****************@persistent.co.in> writes:
Peter Childs wrote:
[snip] All that we basically need for PITR is to provide management code that
lets old WAL segments get archived off to tape (or wherever) rather than
deleted, plus some kind of control that lets the roll-forward process be
stopped at the desired point-in-time rather than necessarily running to
the end of the available WAL data. This isn't a trivial amount of code,
but there's no great conceptual difficulty either.


Hope everybody realizes that the amount of WALs will get very big
on active-update systems...

--
-----------------------------------------------------------------
Ron Johnson, Jr. ro***********@cox.net
Jefferson, LA USA

Great Inventors of our time:
Al Gore -> Internet
Sun Microsystems -> Clusters
---------------------------(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

Nov 12 '05 #15
Quoting Ron Johnson <ro***********@cox.net>:
On Fri, 2003-10-03 at 13:32, Network Administrator wrote:
Quoting Richard Huxton <de*@archonet.com>:
On Thursday 02 October 2003 19:55, Network Administrator wrote:
> Quoting Richard Huxton <de*@archonet.com>:
> > [stuff deleted]

[snip]
The other thing is that I suspect there might be some confusion as to the
difference between "hot backups" (dump of data does not require DB to be

"down")
and "online backups" (dump of data is not needed because on the disk state

of
the DB is current to some "recent" time). To be perfectly honest, I've

only had

Huh? This is the 1st time that I've ever seen mention that there
is a distinction between "hot" and "on-line" backup.

--
-----------------------------------------------------------------
Ron Johnson, Jr. ro***********@cox.net
Jefferson, LA USA

"Fair is where you take your cows to be judged."
Unknown
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

I might be splitting hairs but I have had this conversation elsewhere. It was
quiet awhile ago and I might not be using the right term for "online". Using
my terminalogy though, doing a "hot backup" gives you data current to the time
of that backup. Doing an "online backup" would give you data current to the
last time everthing was sync'd to disk.

I think I had this discussion when I was on a developers list of BeOS during
discussion of what are commonly called journaling filesystems (e.g. Ext3, JFS,
ReiserFS, etc in the *nix world). Databases were talked about since at the time
that was really the only reference for how to even begin implementing.

Actually one of the tests I'm going to be doing when the new Linux 2.6 distos
start coming out is running Pg with an ext3 and reiser filesystems and literally
pulling the plug to see what happens.

--
Keith C. Perry
Director of Networks & Applications
VCSN, Inc.
http://vcsn.com

____________________________________
This email account is being host by:
VCSN, Inc : http://vcsn.com

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

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

Nov 12 '05 #16
On Fri, 2003-10-03 at 14:37, Network Administrator wrote:
Quoting Ron Johnson <ro***********@cox.net>:
On Fri, 2003-10-03 at 13:32, Network Administrator wrote:
Quoting Richard Huxton <de*@archonet.com>:

> On Thursday 02 October 2003 19:55, Network Administrator wrote:
> > Quoting Richard Huxton <de*@archonet.com>:
> > > [stuff deleted] [snip]
The other thing is that I suspect there might be some confusion as to the
difference between "hot backups" (dump of data does not require DB to be

"down")
and "online backups" (dump of data is not needed because on the disk state

of
the DB is current to some "recent" time). To be perfectly honest, I've

only had

Huh? This is the 1st time that I've ever seen mention that there
is a distinction between "hot" and "on-line" backup.

[snip garbage]
I might be splitting hairs but I have had this conversation elsewhere. It was
quiet awhile ago and I might not be using the right term for "online". Using
my terminalogy though, doing a "hot backup" gives you data current to the time
of that backup. Doing an "online backup" would give you data current to the
last time everthing was sync'd to disk.


What the heck kind of DBMS doesn't make sure that the on-disk data
is current? In PG, that's "fsync=on", and turning it off is always
strongly discouraged.

--
-----------------------------------------------------------------
Ron Johnson, Jr. ro***********@cox.net
Jefferson, LA USA

"Whatever may be the moral ambiguities of the so-called demoratic
nations and however serious may be their failure to conform
perfectly to their democratic ideals, it is sheer moral
perversity to equate the inconsistencies of a democratic
civilization with the brutalities which modern tyrannical states
practice."
Reinhold Nieburhr, ca. 1940
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 12 '05 #17
Quoting Ron Johnson <ro***********@cox.net>:
On Fri, 2003-10-03 at 14:37, Network Administrator wrote:
Quoting Ron Johnson <ro***********@cox.net>:
On Fri, 2003-10-03 at 13:32, Network Administrator wrote:
> Quoting Richard Huxton <de*@archonet.com>:
>
> > On Thursday 02 October 2003 19:55, Network Administrator wrote:
> > > Quoting Richard Huxton <de*@archonet.com>:
> > > > [stuff deleted]
[snip]
> The other thing is that I suspect there might be some confusion as to the > difference between "hot backups" (dump of data does not require DB to be "down")
> and "online backups" (dump of data is not needed because on the disk state of
> the DB is current to some "recent" time). To be perfectly honest, I've only had

Huh? This is the 1st time that I've ever seen mention that there
is a distinction between "hot" and "on-line" backup.

[snip garbage]

I might be splitting hairs but I have had this conversation elsewhere. It

was
quiet awhile ago and I might not be using the right term for "online".

Using
my terminalogy though, doing a "hot backup" gives you data current to the

time
of that backup. Doing an "online backup" would give you data current to

the
last time everthing was sync'd to disk.


What the heck kind of DBMS doesn't make sure that the on-disk data
is current? In PG, that's "fsync=on", and turning it off is always
strongly discouraged.

--
-----------------------------------------------------------------
Ron Johnson, Jr. ro***********@cox.net
Jefferson, LA USA

"Whatever may be the moral ambiguities of the so-called demoratic
nations and however serious may be their failure to conform
perfectly to their democratic ideals, it is sheer moral
perversity to equate the inconsistencies of a democratic
civilization with the brutalities which modern tyrannical states
practice."
Reinhold Nieburhr, ca. 1940
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Well, like I said this was years ago at this point so you really can't compare
now to then. I lived through that so I don't equate the terms. As for
"strongly discouraged", the docs don't read that way. The implications of both
fsync being "true" or "false". Either way, its academic now.
--
Keith C. Perry
Director of Networks & Applications
VCSN, Inc.
http://vcsn.com

____________________________________
This email account is being host by:
VCSN, Inc : http://vcsn.com

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

Nov 12 '05 #18
Ron Johnson wrote:
All that we basically need for PITR is to provide management code that
lets old WAL segments get archived off to tape (or wherever) rather than
deleted, plus some kind of control that lets the roll-forward process be
stopped at the desired point-in-time rather than necessarily running to
the end of the available WAL data. This isn't a trivial amount of code,
but there's no great conceptual difficulty either.

Hope everybody realizes that the amount of WALs will get very big
on active-update systems...


Of course they will be recycled in some point of time or other. And even if
postgresql would provide PITR abilities, that would be nearly useless if WAL is
recycled.. Its a space/time tradeoff issue..

Shridhar
---------------------------(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

Nov 12 '05 #19
On Mon, 2003-10-06 at 01:47, Shridhar Daithankar wrote:
Ron Johnson wrote:
All that we basically need for PITR is to provide management code that
lets old WAL segments get archived off to tape (or wherever) rather than
deleted, plus some kind of control that lets the roll-forward process be
stopped at the desired point-in-time rather than necessarily running to
the end of the available WAL data. This isn't a trivial amount of code,
but there's no great conceptual difficulty either.

Hope everybody realizes that the amount of WALs will get very big
on active-update systems...


Of course they will be recycled in some point of time or other. And even if


???? Of course they'll get recycled, after you dump them, prior
to the nightly pg_dump.
postgresql would provide PITR abilities, that would be nearly useless if WAL is
recycled.. Its a space/time tradeoff issue..


Again, ?????. Typically (i.e., on DBMSs that currently have PITR,
it's possible to do a "pg_dump" on Sunday, and *only* do "WAL dumps"
each subsequent night, and be able to restore the DB to the point
of failure by doing a "pg_restore" and then applying X number of
"WAL dumps" in sequence.

--
-----------------------------------------------------------------
Ron Johnson, Jr. ro***********@cox.net
Jefferson, LA USA

YODA: Code! Yes. A programmer's strength flows from code
maintainability. But beware of Perl. Terse syntax... more than
one way to do it...default variables. The dark side of code
maintainability are they. Easily they flow, quick to join you
when code you write. If once you start down the dark path,
forever will it dominate your destiny, consume you it will.
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

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

Nov 12 '05 #20
Ron Johnson wrote:
On Mon, 2003-10-06 at 01:47, Shridhar Daithankar wrote:
Ron Johnson wrote:
Hope everybody realizes that the amount of WALs will get very big
on active-update systems...

Of course they will be recycled in some point of time or other. And even if

???? Of course they'll get recycled, after you dump them, prior
to the nightly pg_dump.


The WAL under PITR will not swell till it fills the partition. In all
probability there will be(should be) a parameter to control how much space it
can occupy at the most. Otherwise it simply does not make sense.
postgresql would provide PITR abilities, that would be nearly useless if WAL is
recycled.. Its a space/time tradeoff issue..

Again, ?????. Typically (i.e., on DBMSs that currently have PITR,
it's possible to do a "pg_dump" on Sunday, and *only* do "WAL dumps"
each subsequent night, and be able to restore the DB to the point
of failure by doing a "pg_restore" and then applying X number of
"WAL dumps" in sequence.


Yes. But when PITR realises, there will be/should be a command/switch to pg_dump
to back up a WAL segment, so that the particular WAL segment could be recycled.

No matter what, WAL remains a resource that should be used sparingly.

PITR is not yet visible as yet. When the discussion starts for providing front
end to PITR, such facilities are going to be suggested and are essential IMO..

Just a thought..

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

Nov 12 '05 #21

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3500
by: Együd Csaba | last post by:
Hi, I've a problem with some of my stored procs. My config is: RH7.1, Postgres 7.3.2 I had converted a few fields of a few tables from one type to another and after this I made all the...
20
6557
by: Keith G. Murphy | last post by:
I'm trying to get a feel for what most people are doing or consider best practice. Given a mod_perl application talking to a PostgreSQL database on the same host, where different users are...
5
5134
by: Paulovič Michal | last post by:
hi all, I have problem with SERIAL field type (or sequence functionality). I have table with three columns - ID, IDS, NAME. I want auto-increment IDS grouped by ID. Example: 1, 1, Ferdo 1, 2,...
2
4881
by: agus liem | last post by:
Hai.. I introduce myself, my name : Agus, from Indonesia. Im develop application using POwerbuilder 7 and postgresql 7.3. I have serveral error, and cannot solve yet. Anybody help me? This is...
17
1943
by: Arthur van Dorp | last post by:
Hi all This is a bit off topic but I don't know where else to ask (please tell me if you know). I'm going to build a web application. The choice of the underlying database wasn't difficult....
4
6429
by: Ying Lu | last post by:
Hello, Under mysql, we have "desc tablename" to get the detail information about a table. My question is about to get column name, and column type for a specific table under PostgreSQL through...
6
12464
by: Ying Lu | last post by:
Hi, I have a question about alter a column's type in a postgreSQL table. For example, I have 10, 000 records in a table name "test", I'd like to change column "machineID" type from integer to...
3
2299
by: Michael Glaesemann | last post by:
Hello all, Recently I've been thinking about different methods of managing users that log into a PostgreSQL-backed application. The users I'm thinking of are not necessarily DBAs: they're...
6
9191
by: M.A. Oude Kotte | last post by:
Hi All, I hope this is the correct mailing list for this question. But neither postgresql.org nor google could help me out on this subject. I did find one disturbing topic on the mailing list...
0
6899
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7019
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6719
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6847
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4463
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2980
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2970
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
166
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.