Re: [HACKERS] Catalogs design question

2001-10-22 Thread Haller Christoph
Hi Steve, Your question about - pg_proc select t.typname from pg_type t , pg_proc p where p.proname = '' and p.proargtypes[0] = t.oid ; select t.typname from pg_type t , pg_proc p where p.proname = '' and p.proargtypes[1] = t.oid ; ... select t.typname from pg_type t , pg_proc p where p.pronam

Re: [HACKERS] Connections, table locks, disk space

2001-10-10 Thread Haller Christoph
Hi, I've done some research on your request, but I could not find very much to help you. What I've found about 1) Connections http://www.postgresql.org/idocs/index.php?runtime-config.html enable LOG_CONNECTIONS (boolean), LOG_PID (boolean) to log database users 2) Table locks nothing 3) C

Re: [HACKERS] System usage and statistics

2001-10-09 Thread Haller Christoph
Hi, I've seen no answer to your question within four days. Have you solved it on your own? I'm interested in the stuff you asked for, too. Please let me know about the status of the function. If you haven't got any answer, maybe we should try to get one using a clearer mail subject. Regards

[HACKERS] What executes faster?

2001-10-01 Thread Haller Christoph
[HACKERS] What executes faster? Now that I've found the solution for my duplicate key problem, I'm wondering what executes faster when I have to check for duplicates. 1. try to update if no row affected -> do the insert else done 2. do a select if row not found -> do the inse

Re: [HACKERS] Abort transaction on duplicate key error

2001-09-27 Thread Haller Christoph
Thanks a lot. Now that I've read your message, I wonder why I was asking something trivial. Christoph > > In a C application I want to run several > > insert commands within a chained transaction > > (for faster execution). > > >From time to time there will be an insert command > > causing an >

[HACKERS] Abort transaction on duplicate key error

2001-09-27 Thread Haller Christoph
Hi all, Sorry for bothering you with my stuff for the second time but I haven't got any answer within two days and the problem appears fundamental, at least to me. I have a C application running to deal with meteorological data like temperature, precipitation, wind speed, wind direction, ...

[HACKERS] Transaction in chained mode

2001-09-25 Thread Haller Christoph
In a C application I want to run several insert commands within a chained transaction (for faster execution). >From time to time there will be an insert command causing an ERROR: Cannot insert a duplicate key into a unique index As a result, the whole transaction is aborted and all the pre

[HACKERS] Where are the ERROR: Messages

2001-09-19 Thread Haller Christoph
[HACKERS] Where are the ERROR: Messages I'm converting from a C based program to PostgreSQL. There are some DBMS specific errors caught, i.e. deadlocks. Not only for this reason, but also from general curiosity I'd like to know what kinds of ERRORS PostgreSQL is dealing with. Which source c

Re: [HACKERS] triggers procedures listing URGENT

2001-09-18 Thread Haller Christoph
Within psql examine the system tables pg_proc pg_trigger Refer to the documentation Chapter System Catalogs Regards, Christoph PS I was sending this mail yesterday to '[EMAIL PROTECTED]' but it seemed to disappear, at least I did not get it back. Has anybody experienced similar effects

Re: [HACKERS] MySQL development MUST immdediately cease - Due to

2001-09-18 Thread Haller Christoph
I agree. This mailing list is not a forum to express aversions to other software products, no matter how justified these aversions are. ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/users-lounge/

Re: [HACKERS] triggers procedures listing URGENT

2001-09-17 Thread Haller Christoph
Have a look into the system tables pg_proc pg_trigger Have a look into the documentation, refer to System Catalogs Within psql you get System Catalogs listed by \dS specific information about a table by i. e. \d pg_proc Regards, Christoph ---(end of broadcast)-

Re: [HACKERS] count of occurences PLUS optimisation

2001-09-13 Thread Haller Christoph
Adam, try this select distinct job_num, count (job_num) from search_record group by job_num ; don't worry about an ordered list - group by does it for you. Regards, Christoph > > HACKERS: see the end of this message about a possible optimisation for > ORDER BY+LIMIT cases (the normal use o

[HACKERS] ERROR: Cannot insert a duplicate key into a unique index

2001-09-13 Thread Haller Christoph
[HACKERS] ERROR: Cannot insert a duplicate key into a unique index I'm working on a C code application using loads of insert commands. It is essential to distinguish between an error coming from a misformed command or other fatal reasons and a duplicate key. In either case, the PQresultStat