[HACKERS] HA features for PostgreSQL in 7.5/8.0

2003-12-09 Thread Oli Sennhauser
Hello hackers

Is there a plan to mirror logfiles or/and controlfiles for the new 
version of PostgreSQL? Or do you think it is not that important for HA?

Regards Oli

---

Oli Sennhauser
Database-Engineer (Oracle  PostgreSQL)
Rebenweg 6
CH - 8610 Uster / Switzerland
Phone (+41) 1 940 24 82 or Mobile (+41) 79 450 49 14
e-Mail [EMAIL PROTECTED]
Website http://mypage.bluewin.ch/shinguz/PostgreSQL/
Secure (signed/encrypted) e-Mail with a Free Personal SwissSign ID: http://www.swisssign.ch

Import the SwissSign Root Certificate: http://swisssign.net/cgi-bin/trust/import



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [HACKERS] pg_restore and create FK without verification check

2003-11-28 Thread Oli Sennhauser

People might be more interested in debating this topic with you if we
hadn't discussed it at length just a couple months back.  There wasn't
consensus then that we had to offer an escape hatch, and you've not
offered any argument that wasn't made before.


I'm simply presenting a problem for which I currently do not see any 
solution
(it's very important for us to be able to restore db within a 
reasonable amount
of time). If there's no solution and none is planned, then we cannot 
use pgsql,
can we?


You're simply presenting a problem that isn't there in the first 
place. If you really feel the need to shoot yourself in the foot, use 
separate schema and data dumps and do the latter with -X 
disable-triggers.

And now will you please put it to rest?
If this is not a prio 1 problem, what are then the prio one problems??? 
You are a developer, right? Did you ever manage a big database in 
production? What shoul I tell to my customers when they want to have a 
not that big database (100 GB) in PostgreSQL: I am sorry, but we are 
not able to do performant backups, I recommend you to choos ORACLE 
instead???. Is it this we/you recommend?

Regards Oli

---

Oli Sennhauser
Database-Engineer (Oracle  PostgreSQL)
Rebenweg 6
CH - 8610 Uster / Switzerland
Phone (+41) 1 940 24 82 or Mobile (+41) 79 450 49 14
e-Mail [EMAIL PROTECTED]
Website http://mypage.bluewin.ch/shinguz/PostgreSQL/
Secure (signed/encrypted) e-Mail with a Free Personal SwissSign ID: http://www.swisssign.ch

Import the SwissSign Root Certificate: http://swisssign.net/cgi-bin/trust/import



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [HACKERS] pg_restore and create FK without verification check

2003-11-26 Thread Oli Sennhauser
Hello

I was asking about this too, one or two weeks ago.

It appears there's not a lot of interest in discussing the 
possibility of FK
constraint creation WITHOUT the verification check. How then should 
one handle
the situation with pg_restore and large dbs where creation of FK 
constraint(s)
may take hours? 
I'd prefer a backup/restore method that dumps physical data, so at 
restore time there's no need for recreation of FKs. But I didn't see 
any feedback on this proposal either.   
Was this proposal a separate one from using WAL logs for PITR ? 

My question then was:

Q2: New situation: Why is it not a good idea to backup the database
files of a cluster incl. all c_log and x_log (log files last) to get a
physicaly hot backup.
In principle it is the same situation like a server which is crashing
(not a once but during some time). After restoring, it should do a redo
and rollback automatically like after a crash. This methode (physical
hot backup) would increas backup and restore times dramatically.
The answer from Robert Treat was:

Essentially I think you're right, it should behave much like a crashing 
server.  The main reason why people don't recommend it is that (depending on 
your os setup) there is the potential to lose data that has been commited but 
not actually written to disk.  Note that you shouldn't get corrupted data 
from this, but in many cases losing data is just as bad so we don't recomend 
it.  If you really want to do this, you should really either shut down the 
database  or get LVM going.
I did not yet many tests. But in principle I was able to hot-backup a 
cluster or only one database and restore it. But the answer from Robert 
makes me a little afraid. It means for me he/they do not trust theire 
recovery mechanism. A definitive answer from Robert is still out.

In my opinion a high grade professional database system (like PostgreSQL 
is or want to be) should have some hot backup features. Otherwise you 
are NEVER able to handle VLDB's. They were discussing about a 32 TB 
PostgreSQL database. And I bet my next bonus this year :-), that they 
are also not able to backup and restore it in a reasonable time.

Regards Oli

---

Oli Sennhauser
Database-Engineer (Oracle  PostgreSQL)
Rebenweg 6
CH - 8610 Uster / Switzerland
Phone (+41) 1 940 24 82 or Mobile (+41) 79 450 49 14
e-Mail [EMAIL PROTECTED]
Website http://mypage.bluewin.ch/shinguz/PostgreSQL/
Secure (signed/encrypted) e-Mail with a Free Personal SwissSign ID: http://www.swisssign.ch

Import the SwissSign Root Certificate: http://swisssign.net/cgi-bin/trust/import



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [HACKERS] Release cycle length

2003-11-21 Thread Oli Sennhauser
Hello hackers

Sorry when I am talking to the gurus...

There is a database, which has a concept called Transportable 
Tablespace (TTS). Would it not be a verry easy and fast solution to 
just do this with the Tables, Index and all non catalog related files.
- You create a new db cluster (e.g 8.0).
- Generate a TTS export skript.
- Shut the (old) db-cluster (files should be consistent now, ev. do 
something with the log files before).
- Move the files (eventually not needed) and
- plug it in to the new db cluster (via the export skript).

Expected downtime (without moving data files) 5-10 minutes.

Regards Oli

---

Oli Sennhauser
Database-Engineer (Oracle  PostgreSQL)
Rebenweg 6
CH - 8610 Uster / Switzerland
Phone (+41) 1 940 24 82 or Mobile (+41) 79 450 49 14
e-Mail [EMAIL PROTECTED]
Website http://mypage.bluewin.ch/shinguz/PostgreSQL/
Secure (signed/encrypted) e-Mail with a Free Personal SwissSign ID: http://www.swisssign.ch

Import the SwissSign Root Certificate: http://swisssign.net/cgi-bin/trust/import



smime.p7s
Description: S/MIME Cryptographic Signature