[GENERAL] Switchover : WAL archiving and shutdown...

2005-12-01 Thread Philippe Ferreira
it copied before leaving ? In other words, when I want to switchover, is it sufficient to stop postgresql, and rsync the last partial WAL (the last modified one), or do I have to check if every WAL file is in sync before starting the other server ?? Thank you in advance, Philipp

[GENERAL] Switchover : WAL archiving and shutdown...

2005-12-01 Thread Philippe Ferreira
her server ?? Thank you in advance, Philippe Ferreira ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match

[GENERAL] My very first PL/pgSQL procedure...

2006-01-25 Thread Philippe Ferreira
"sequence_name"... Any idea ? Thank you in advance, Philippe Ferreira, France. ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [GENERAL] My very first PL/pgSQL procedure...

2006-01-25 Thread Philippe Ferreira
tion "seq_min" line 4 at execute statement So, it seems that it is impossible to lock a sequence ! If it is the case, how can I achieve the same result without locking the sequence ? Thank you again, Philippe Ferreira. ---(end of broadcast)-

Re: [GENERAL] My very first PL/pgSQL procedure...

2006-01-25 Thread Philippe Ferreira
END LOOP; END LOOP; RETURN; END; $$ LANGUAGE plpgsql; - It gives the result I expect (and it doesn't interfere with concurrent uses of the sequence), but it is not very optimized ! So, if someone hav

Re: [GENERAL] My very first PL/pgSQL procedure...

2006-01-26 Thread Philippe Ferreira
using this sequence would then break !! The only solution I found to prevent this is with my "loops" !! Best regards, Philippe Ferreira. ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] creating users per database

2006-01-28 Thread Philippe Ferreira
o the database they belong : hostsamegroup all 0.0.0.0 0.0.0.0 md5 Bye, Philippe Ferreira. Hi all, I have a faint memory of it being possible to create users "inside" *one* given database by way of a particular "create user" syntax along the line

Re: [GENERAL] My very first PL/pgSQL procedure...

2006-01-28 Thread Philippe Ferreira
So, in this example, if I don't increment the last value of my sequence from 1011 to 1013 (before my last "SWITCHOVER"), it will output "1012A" (instead of 1014A), and my new record will conflict with an existing one !! Thank you for your interest, Philippe Ferrei

Re: [GENERAL] My very first PL/pgSQL procedure...

2006-01-28 Thread Philippe Ferreira
l.org/pgsql-hackers/2001-10/msg00928.php Best regards, Philippe Ferreira. ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[GENERAL] Bug with sequences and WAL ?

2006-02-03 Thread Philippe Ferreira
f PostgreSQL : 8.0.4) Thank you, Philippe Ferreira. ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Bug with sequences and WAL ?

2006-02-04 Thread Philippe Ferreira
do switchover. In this case, I think that nothing should change... But, I recognize that using PITR for switchover is rather an "unsupported" functionnality... Thank you, Philippe Ferreira. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Bug with sequences and WAL ?

2006-02-04 Thread Philippe Ferreira
To get "exact" restart behavior we'd need to emit a separate xlog record for each nextval() command, which seems like a pretty high price considering that you cannot assume no holes in the sequence values anyway. Hi, Why not give the choice at compile-time ? Philippe.

[GENERAL] SELECT with REAL...

2006-02-05 Thread Philippe Ferreira
Thank you in advance, Philippe Ferreira. ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly

Re: [GENERAL] SELECT with REAL...

2006-02-06 Thread Philippe Ferreira
y sources. Try SELECT * FROM mytable WHERE myreal >= 10.49 AND myreal <= 10.51; and see what result that gives. This way, it works... Philippe Ferreira. ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desi

Re: [GENERAL] SELECT with REAL...

2006-02-06 Thread Philippe Ferreira
Hi, I've just realized that this way, it works very fine : SELECT * FROM mytable WHERE myreal = 13.95::real; But I still don't understand very well why I need the explicit conversion (::real) ... Philippe Ferreira. ---(end of

Re: [GENERAL] SELECT with REAL...

2006-02-07 Thread Philippe Ferreira
Hi, Thank you all for your comments. Finally, I think I will simply use the data type NUMERIC instead of REAL in all my columns !! This type is more appropriate to store prices ! Philippe Ferreira. Try this: SELECT 13.95 = 13.95::real; It should yield false, because the first number

Re: [GENERAL] Why pg_hba not in table?

2006-02-08 Thread Philippe Ferreira
tual pg_hba.conf file is ideal ! If we would have to start the database in order to reconfigure it to prevent normal connections, a normal user could take advantage of this to connect during this process !! Don't loose flexibility and security for some "elegant&q

Re: [GENERAL] wal copies for high availability

2006-02-08 Thread Philippe Ferreira
of the current WAL every 5 minutes... Will the wal file copied usefull in those situations? Of course, yes ! The filled WAL files (WAL archives) are automatically copied by the postmaster process, but you need to copy yourself the current one to be able to recover the last stuff ! What other

Re: [GENERAL] Database Comparison tool?

2006-02-09 Thread Philippe Ferreira
"pgdump" of both databases, and use the "diff" tool to compare the two generated files ! (But I hope your databases are not too big...) Philippe Ferreira. ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will i

Re: [GENERAL] Tool

2006-02-10 Thread Philippe Ferreira
ideal. I am running Postgresql v 8.0 on Windows XP. Hi, If you need a GUI to manage your Postgresql databases, you have "PgAdmin"... Philippe Ferreira. ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Tool

2006-02-10 Thread Philippe Ferreira
Thanks I am using pgadmin for development. I'm looking for a tool with which I can develop an interface that will be used for entering and accessing information in context with the user tasks. Bob Hi, Why not OpenOffice "Base" ? http://www.openoffice.org/product/base

Re: [GENERAL] Last modification time

2006-02-11 Thread Philippe Ferreira
Yeah, LISTEN/NOTIFY is definitely a lighter-weight solution--I didn't think of that before. Hi, I'm interested too in using this method ! Can anyone give a simple example of how to use/implement it ? Or good links to clear/quick documentation about these functions ? Thank you

Re: [GENERAL] upgrade PostgreSQL 8.x on production FreeBSD

2006-02-24 Thread Philippe Ferreira
Hi, If the downtime is a concern, you could use Slony-1 for the migration. Philippe Ferreira. [EMAIL PROTECTED] napisaƂ(a): Could anybody point to an on-line resource about the steps involved with upgrading of PostgreSQL 8.x on a production FreeBSD 5.4 with minimum downtime (i.e. 1 - stop