Re: [GENERAL] getting around---division by zero on numeric

2005-10-19 Thread Patrick FICHE
* sum(cost) / sum(sales) seems very similar to sum(cost). --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29

Re: [SPAM] Re: [GENERAL] Question about stored procedures

2005-10-13 Thread Patrick FICHE
You should have a look at the following item of documentation : http://www.postgresql.org/docs/8.0/interactive/xfunc-c.html   Patrick --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18

Re: [GENERAL] ERROR: type "temp_gc" already exists

2005-09-28 Thread Patrick . FICHE
. The code is somehow more heavy to write but really the application is now robust where it was not... Regards, Patrick --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29

Re: [GENERAL] detection of VACUUM in progress

2005-08-31 Thread Patrick . FICHE
impacted Or perhaps you could try pg_autovacuum which will run VACUUM for you based on statistics... Regards, Patrick ------- Patrick Fiche email : [EMAIL PROTECTED] tel :

Re: [GENERAL] Removing all users from a group

2005-08-31 Thread Patrick . FICHE
SELECT RemoveUsersFromGroup( 'test' ) Regards, Patrick   ------- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 --

Re: [GENERAL] psql from Linux script

2005-08-30 Thread Patrick . FICHE
uot;" If it can help you... ---- --- Patrick Fiche email : [EMAIL PROTECTED] tel : 01 69 29 36 18 --- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Bernard Sen

Re: [GENERAL] getting last day of month

2005-08-25 Thread Patrick . FICHE
You could try : SELECT int4(EXTRACT( DAYS FROM CURRENT_DATE + '1 month'::interval - CURRENT_DATE )); ------- Patrick Fiche email : [EMAIL PROTECTED] tel : 01 6

Re: [GENERAL] Getting actual number of rows updated

2005-08-08 Thread Patrick . FICHE
HERE name LIKE '%abc%' ---- --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 --- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [GENERAL] template1 problems

2005-07-06 Thread Patrick . FICHE
Tom Lane recently pointed one excellent article dealing with this problem... http://techdocs.postgresql.org/techdocs/pgsqladventuresep1.php Regards, Patrick --- Patrick Fiche email : [EMAIL PROTECTED] tél

Re: [GENERAL] help about the function

2005-06-23 Thread Patrick . FICHE
ot; GROUP BY "VALIDITY"."RV_ID", "VALIDITY"."VALIDITY") sve;   Regards, Patrick   --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 -

Re: [GENERAL] renumber id's in correct order (compact id's)

2005-06-21 Thread Patrick . FICHE
gards, Patrick ------- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 --- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of peter pilsl Sent: mardi

Re: [GENERAL] Using pg_dump in a cron

2005-06-02 Thread Patrick . FICHE
Thanks Tom, You are absolutely right, the commandt stty istrip was the first line of my .profile... Regards, Patrick --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18

[GENERAL] Using pg_dump in a cron

2005-06-02 Thread Patrick . FICHE
ice or address What's wrong with it ? ------- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 ---  

Re: [GENERAL] How to recover from : "Cache lookup failed for rela

2005-05-23 Thread Patrick . FICHE
ly shut down; automatic recovery in progress LOG: redo starts at 0/A7110340 FATAL: the database system is starting up LOG: record with zero length at 0/A77BF950 LOG: redo done at 0/A77BF918 LOG: database system is ready ERROR: cache lookup failed for relation 463558 CONTEXT: SQL statement "CREATE TEMP TABLE Tmp_

Re: [GENERAL] How to recover from : "Cache lookup failed for rela

2005-05-23 Thread Patrick . FICHE
--- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 --- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tom Lane Sent: lundi 23 mai 2005 16:50 To: [EMAIL

Re: [GENERAL] How to recover from : "Cache lookup failed for rela

2005-05-23 Thread Patrick . FICHE
0 | n ------- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 --- -Original Message- From: Tom La

Re: [GENERAL] How to recover from : "Cache lookup failed for rela

2005-05-23 Thread Patrick . FICHE
tried the following : - REINDEX DATABASE alis; - DROP SCHEMA pg_temp_4 ( CASCADE ) - from the shell : reindexdb alis - Tried to stop/restart PostgreSQL, - vacuum Patrick ---- --- Patrick Fiche email : [EMAIL PROTECTED

[GENERAL] How to recover from : "Cache lookup failed for relation "

2005-05-23 Thread Patrick . FICHE
that nothing will remove this type   Thanks for your help Patrick ----------- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 ---  

[GENERAL] Execution shell commands from Function

2005-05-20 Thread Patrick . FICHE
s, Patrick ------- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 ---  

Re: [GENERAL] Password Encryption / PgAdmin

2005-05-17 Thread Patrick . FICHE
Thanks, I forgot to mention md5 encryption in pg_hba.conf... --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18

[GENERAL] Password Encryption / PgAdmin

2005-05-17 Thread Patrick . FICHE
--- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 ---  

[GENERAL] pgadmin on Solaris

2005-05-12 Thread Patrick . FICHE
Hi,   Is Solaris 10 supported platform for pgAdmin III. If yes, where is the distribution or what's the way to compile it on Solaris 10.   Thanks Patrick --- Patrick Fiche email : [EMAIL PROTECTED

[GENERAL] PsqlODBC / Unix

2005-05-11 Thread Patrick . FICHE
l/lib/psqlodbc.so: symbol ucs2_to_utf8: referenced symbol not found (0)   I didn't succeed in getting psqlodbc traces. Could anyone give me a clue on what's happening and how to correct it ?   Thanks -------

[GENERAL] psqlodbc / Solaris 10

2005-05-10 Thread Patrick . FICHE
to_ucs2_lf: referenced symbol not found   Does anyone have an idea on how to solve this problem... I guess it's only a configuration issue but don't know how to solve.   Thanks ------- Patrick Fiche emai

Re: [GENERAL] Change Windows path to Unix path...

2005-04-26 Thread Patrick . FICHE
Thanks, That's exactly what I was looking for. --- Patrick Fiche email : [EMAIL PROTECTED] tel : 01 69 29

[GENERAL] Change Windows path to Unix path...

2005-04-26 Thread Patrick . FICHE
7;t succeed to replace '\' by '/' in the filename. Could anybody help me.   Thanks Patrick ----------- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 ---  

Re: [GENERAL] Use of temporary tables in functions

2005-04-22 Thread Patrick . FICHE
  --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 --- -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of [EMAIL PROTECTED]Sent: jeudi 21 avril 2005 15

[GENERAL] Use of temporary tables in functions

2005-04-21 Thread Patrick . FICHE
REINDEX command to free some space on the disk.   Does the problem still exist in version 8 ? Thanks for your answers.   Patrick --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 ---  

Re: [GENERAL] Get Number of milliseconds for an intervall

2005-04-12 Thread Patrick . FICHE
Sorry, I forgot to say in PL/pgSQL   --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18

[GENERAL] Get Number of milliseconds for an intervall

2005-04-12 Thread Patrick . FICHE
Hi,   I would like to get the elapsed time in milliseconds between 2 dates... Does anyone have an idea of how to do it ?   Thanks Patrick --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 ---  

Re: [GENERAL] Temporary Tables

2005-03-31 Thread Patrick . FICHE
needs...     --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 --- -Original Message-From: [EMAIL PROT

Re: [GENERAL] Temporary Tables

2005-03-31 Thread Patrick . FICHE
ution is to use EXECUTE for all queries using temporary tables --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 3

Re: [GENERAL] truncate/create slowness

2005-03-31 Thread Patrick . FICHE
e case but hope it will help... ------- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 --- -Origin

Re: [GENERAL] Books for experienced DB developer

2005-01-07 Thread Patrick FICHE
trick --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 --- -Original Message- From: Tino Wildenhain [mailto:[EMAIL PROTECTED] Sent: vendredi 7 janvier 2005 12:

Re: [GENERAL] Books for experienced DB developer

2005-01-07 Thread Patrick FICHE
I'm afraid this is still a problem. >From my knowledge, Postgres function is able to return a single result-set not multiple. I may have missed some facility... Regards, Patrick --- Patrick Fich

Re: [GENERAL] Books for experienced DB developer

2005-01-07 Thread Patrick FICHE
trick --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 29 36 18 --- -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROT

Re: [GENERAL] Creating index on a view?

2004-11-24 Thread Patrick Fiche
Some time ago, an excellent tutorial on materialized views with PostgreSQL was pointed at this address http://jonathangardner.net/PostgreSQL/materialized_views/matviews.html Patrick > -- - > Patrick

Re: [GENERAL] Help with syntax for timestamp addition

2004-11-22 Thread Patrick Fiche
Have a try at this syntax SELECT number FROM procedures WHERE date + CAST( numdays || ' days' AS interval ) <= CURRENT_TIMESTAMP; Patrick > -- ----- > Patrick Fiche > email : [EMAIL PROTE

Re: [GENERAL] query with table alias

2004-11-12 Thread Patrick Fiche
Title: query with table alias The correct query would be "select f.c1, f.c2 from foo f;" if you want to use alias   Patrick   --- Patrick Fiche email : [EMAIL PROTECTED] tél : 01 69 2

Re: [GENERAL] Tables and Indexes

2004-10-28 Thread Patrick Fiche
Hi, I think that TABLESPACE is what you need... It's now available in Postgresql, just look at the syntax in documentation. > -- - > Patrick Fiche > email : [EMAIL PROTECTED] > tél

[GENERAL] Possible bug with LABEL and LOOP in 8.0

2004-10-18 Thread Patrick Fiche
lity to indicate the LABEL in EXIT statement...   Regards,   Patrick ------- Patrick Fiche email : [EMAIL PROTECTED] ---   Protected by Polesoft Lockspam http://www.polesoft.com/refer.html

Re: [GENERAL] Time at end of transaction

2004-10-13 Thread Patrick Fiche
Hi, I think that timeofday() should solve your issue. Just take care that this function returns text instead of timestamp... You will have to cast it. Patrick > -- - > Patrick Fiche > email

[GENERAL] psql : how to make it more silent....

2004-10-13 Thread Patrick Fiche
." Is there a way to get rid of these messages   Thanks   ------- Patrick Fiche email : [EMAIL PROTECTED

[GENERAL] Confused with LABEL and LOOP

2004-10-12 Thread Patrick Fiche
trol reached end of function without RETURNCONTEXT:  PL/pgSQL function "test"   If I just change EXIT LOOP1 to EXIT -> everything is OK I think we previously had the possibility to indicate the LABEL in EXIT statement...   Regards,   Patrick -----

[GENERAL] Performance for indexes on functions

2000-06-15 Thread Patrick FICHE
function used when creating the index : SELECT ... WHERE substr( col1, 1, 5 ) = '.'. Do you recommend or not to use this kind of indexes ? Excuse me it it's not really clear but if necessary, I will try to explain it better... Thanks a lot Patrick FICHE

[GENERAL] Physical data storage

2000-05-09 Thread Patrick FICHE
Hi, Does anyone know where I could find a documentation describing physical storage format in Postgres ? Thanks Patrick Fiche