Re: [GENERAL] (bash the search engine) Don't split on underscore

2006-12-20 Thread Hannes Dorbath
On 19.12.2006 20:32, Reece Hart wrote: On Tue, 2006-12-19 at 13:25 +0100, Hannes Dorbath wrote: A counter example is searching for information schema, for which you'd probably want hits to information_schema as well. I think `information_schema' should be indexed as: - information -

Re: [GENERAL] Autovacuum Improvements

2006-12-20 Thread Joris Dobbelsteen
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew O'Connor Sent: woensdag 20 december 2006 2:53 To: Glen Parker; Postgres General Subject: Re: [GENERAL] Autovacuum Improvements Alvaro Herrera wrote: [snip] I would go one step further and suggest

Re: [GENERAL] Savepoints in PL/pgSQL

2006-12-20 Thread BigSmoke
On Dec 19, 7:03 pm, [EMAIL PROTECTED] (Bernd Helmle) wrote: On 19 Dec 2006 08:37:01 -0800, BigSmoke [EMAIL PROTECTED] wrote: What would solve my problem is if there was a method to, at the end of a begin/end block, rollback the changes made in that block without having to raise an

Re: [GENERAL] Autovacuum Improvements

2006-12-20 Thread Peter Childs
On 19/12/06, Chris Browne [EMAIL PROTECTED] wrote: matthew@zeut.net (Matthew O'Connor) writes: 2) Once we can have multiple autovacuum workers: Create the concept of hot tables that require more attention and should never be ignored for more that X minutes, perhaps have one autovacuum worker

Re: [GENERAL] Autovacuum Improvements

2006-12-20 Thread Alban Hertroys
Glen Parker wrote: Brandon Aiken wrote: You're saying that the dirtyness of a table is proportional to when you plan on vacuuming it next. The dirtiness of a table should most certainly have an effect on when it gets vacuumed in relation to other tables. If dirtiness could be rated, then

Re: [GENERAL] plperl trigger problem

2006-12-20 Thread BigSmoke
On Dec 20, 9:02 am, Christian Maier [EMAIL PROTECTED] wrote: Sorry I have not found a plperl group so I hope the useres of this group can help me. I have some csv data and some columns are in a bad format. this means that some float values are formatet as . if the are 0. So I have made

Re: [GENERAL] permission in the db or in the application?

2006-12-20 Thread BigSmoke
On Dec 18, 1:10 pm, [EMAIL PROTECTED] (Sandro Dentella) wrote: Hi all, I'm starting a project in which I will use PostgreSQL in which I need to check permissions at different levels (eg.: status of a record, hierarchy and so on). The application needs to run with a web interface

Re: [GENERAL] Simple Trigger Error

2006-12-20 Thread Parthan SR
On 12/20/06, A. Kretschmer [EMAIL PROTECTED] wrote: But i have questions/suggestions: - you have never-used variables in your function. Perhaps you have an older version from the function with an error and the wrong version runs? - perhaps, you have an other trigger on phonebook that calls

Re: [GENERAL] Stored Procedure and Trigger they puzzle me

2006-12-20 Thread Lars Heidieker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 19 Dec 2006, at 11:44, Albe Laurenz wrote: Actually I just figured out, that is is not the trigger but the two cascade on update triggers collide. It happens also without the trigger: lt=# UPDATE ltlocation SET id = 4 WHERE id = 18999;

Re: [GENERAL] xml2 install problem

2006-12-20 Thread Paul Silveira
Thanks Devrim and Peter... I had a feeling that it was just missing something but couldn't see exactly what it was... Regards, Paul Paul Silveira wrote: Hello, I just installed Postgres 8.2 and was trying to add the xml2 contrib module. I went to the folder that contained the

Re: [GENERAL] Let's play bash the search engine

2006-12-20 Thread magnus
As for searching spceific mailinglists, you can do that from the archives search page already. Perhaps it needs to be made more accessible or something? Amazing. What I like the most about it is that it actually works. Great! that actually worked on the old one as well. The only new

Re: [GENERAL] postgres kerberos how to

2006-12-20 Thread Derrick Stensrud
Thanks, I'm going to go ahead and try to implement postgresql kerberos against active directory 2003 today. I read a bit about it last night and have a few questions. You wrote: * Map PG on database server as a user in Active Directory o Create user account in AD for PG service

Re: [GENERAL] out of memory woes

2006-12-20 Thread Angva
hubert depesz lubaczewski wrote: On 19 Dec 2006 07:01:41 -0800, Angva [EMAIL PROTECTED] wrote: shared_buffers = 57344 work_mem = 20 maintenance_work_mem = 524288 work_mem seems to be high. what is you max_connections setting? max_connections = 100 However we never come even

Re: [GENERAL] out of memory woes

2006-12-20 Thread Angva
Well the problem is occurring again, but this time it is intermittent. I think the crux of the issue is that Linux isn't giving swap to Postgres - and possibly other - processes. Why this is the case I do not know and will research. I may shrink work_mem or add more RAM, but I'd rather use swap

Re: [GENERAL] out of memory woes

2006-12-20 Thread Angva
We found that the kernel setting SHMALL was set ridiculously high - 1024g!. Someone noticed this when running ipcs -lm - seemed just a tad off. :) -- Shared Memory Limits max number of segments = 4096 max seg size (kbytes) = 524288 max total shared memory (kbytes) = 1073741824 min

[GENERAL] windows - silent uninstall question

2006-12-20 Thread Amit Mody
Hi, I am packaging the postgres database in my application and for this I need to do a silent install and uninstall, the msiexec for install works great. Is there a similar utility for uninstall. If not, are there any other options to achieve this?? Thanks Amit

[GENERAL] plperl trigger problem

2006-12-20 Thread Christian Maier
Sorry I have not found a plperl group so I hope the useres of this group can help me. I have some csv data and some columns are in a bad format. this means that some float values are formatet as . if the are 0. So I have made an before insert trigger that looks for these values and replaces

Re: [GENERAL] out of memory woes

2006-12-20 Thread Alvaro Herrera
Angva wrote: We found that the kernel setting SHMALL was set ridiculously high - 1024g!. Someone noticed this when running ipcs -lm - seemed just a tad off. :) That's not a problem because it's just a limit. It won't cause out of memory or anything. The problem with work_mem is that the

Re: [GENERAL] plperl trigger problem

2006-12-20 Thread Tom Lane
Christian Maier [EMAIL PROTECTED] writes: I have some csv data and some columns are in a bad format. this means that some float values are formatet as . if the are 0. So I have made an before insert trigger that looks for these values and replaces them but it dont work and I cannot found

Re: [GENERAL] windows - silent uninstall question

2006-12-20 Thread Magnus Hagander
On Tue, Dec 19, 2006 at 05:42:05PM -0500, Amit Mody wrote: Hi, I am packaging the postgres database in my application and for this I need to do a silent install and uninstall, the msiexec for install works great. Is there a similar utility for uninstall. If not, are there any other options

[GENERAL] citing postgresql?

2006-12-20 Thread Christian.Strobl
hi all, exists a common citation for the postgresql-project, like e.g. for the R-project: To cite R in publications, use @Manual{, title= {R: A Language and Environment for Statistical Computing}, author = {{R Development Core Team}},

Re: [GENERAL] postgres kerberos how to

2006-12-20 Thread Derrick Stensrud
If anyone else out there can help me understand what this ktpass program is doing I would be greatful. Also, can anyone help answer these questions I have. Thanks. Questions: - If I have 10 users in postgresql do I need to run this ktpass program for each user? If so would I always keep

Re: [GENERAL] A trigger question

2006-12-20 Thread Bruno Wolff III
On Mon, Dec 18, 2006 at 22:18:43 -0500, Chansup Byun [EMAIL PROTECTED] wrote: Hi, I'm trying to set up a trigger to prevent any duplicate entries into my table. But I couldn't figure out how to make my trigger work. Couldn't you use a unique constraint to do this?

Re: [GENERAL] inheritance

2006-12-20 Thread Bruno Wolff III
On Tue, Dec 19, 2006 at 11:20:35 +0100, Udo Zubel [EMAIL PROTECTED] wrote: Hi Im engineering a PG database with my workmate. Unfortunately the inheritance feature seems not to be able to solve my problem. I have a table order with an orderID, each order has 1 to n types of articles, like

Re: [GENERAL] Autovacuum Improvements

2006-12-20 Thread Glen Parker
Joris Dobbelsteen wrote: Alvaro Herrera wrote: [snip] I would go one step further and suggest that when the maintenance window system gets completed we give it a default setup of midnight to 6AM or something like that. Do not do that... I agree. There is nothing very special about that

Re: [GENERAL] postgres kerberos how to

2006-12-20 Thread Garner Chung
Hey Derrick, I work with Matt, and I was involved in our Kerberos implementation. I'll try to answer your questions... - You only need to make the mapping to an Active Directory(AD) user once for that PG service. What that ktpass command does is map the principal name for your PG service to an

Re: FW: [GENERAL] postgres kerberos how to

2006-12-20 Thread Derrick Stensrud
Great! Thanks so much, I'm going to try to get this going right now. Do I need unix user accounts? Garner Chung wrote: Hey, I think this made it to the list. But I had also CC:ed you separately -- to which I got a bounce back. So here's my second attempt to essentially CC: you. garner

[GENERAL] Starting Postgresql

2006-12-20 Thread Bob Pawley
I haven't used the command lines previously having relied on PG Admin. In the instructions - Starting postmaster Nothing can happen to a database unless the postmaster process is running. As the site administrator, there are a number of things you should remember before starting the

Re: [GENERAL] Starting Postgresql

2006-12-20 Thread Ray Stell
a shell http://en.wikipedia.org/wiki/Shell_%28computing%29 On Wed, Dec 20, 2006 at 10:59:05AM -0800, Bob Pawley wrote: I haven't used the command lines previously having relied on PG Admin. In the instructions - Starting postmaster Nothing can happen to a database unless the postmaster

Re: [GENERAL] Starting Postgresql

2006-12-20 Thread Bob Pawley
which in PostgreSQL is Bob - Original Message - From: Ray Stell [EMAIL PROTECTED] To: Bob Pawley [EMAIL PROTECTED] Cc: Postgresql pgsql-general@postgresql.org Sent: Wednesday, December 20, 2006 11:07 AM Subject: Re: [GENERAL] Starting Postgresql a shell

Re: [GENERAL] Starting Postgresql

2006-12-20 Thread Bob Pawley
which in PostgreSQL is Bob - Original Message - From: Bob Pawley [EMAIL PROTECTED] To: Ray Stell [EMAIL PROTECTED] Cc: Postgresql pgsql-general@postgresql.org Sent: Wednesday, December 20, 2006 11:12 AM Subject: Re: [GENERAL] Starting Postgresql which in PostgreSQL is Bob

Re: [GENERAL] Starting Postgresql

2006-12-20 Thread Raymond O'Donnell
On 20 Dec 2006 at 11:12, Bob Pawley wrote: which in PostgreSQL is It's not in PostgreSQL - it's the shell of your operating system. In Windows, you get that either by clicking Start - Run and typing command or cmd (depending on your version of windows), or by clicking on Start - Programs

Re: [GENERAL] Starting Postgresql

2006-12-20 Thread Richard Huxton
Raymond O'Donnell wrote: On 20 Dec 2006 at 11:12, Bob Pawley wrote: which in PostgreSQL is It's not in PostgreSQL - it's the shell of your operating system. In Windows, you get that either by clicking Start - Run and typing command or cmd (depending on your version of windows), or by

Re: [GENERAL] Starting Postgresql

2006-12-20 Thread Joshua D. Drake
On Wed, 2006-12-20 at 11:13 -0800, Bob Pawley wrote: which in PostgreSQL is Bob, you should be looking into your control-panel and service controls to start the postgresql service. Sincerely, Joshua D. Drake Bob - Original Message - From: Bob Pawley [EMAIL PROTECTED] To:

Re: [GENERAL] Starting Postgresql

2006-12-20 Thread Bob Pawley
Here's the url http://fusion.gat.com/~osborne/dbdoc/postgres/postmaster.htm Bob - Original Message - From: Richard Huxton dev@archonet.com To: Raymond O'Donnell [EMAIL PROTECTED] Cc: Postgresql pgsql-general@postgresql.org Sent: Wednesday, December 20, 2006 11:43 AM Subject: Re:

Re: FW: [GENERAL] postgres kerberos how to

2006-12-20 Thread Garner Chung
Nope, no Unix accounts are necessary besides the one that PG runs as. You do need the PG roles, however. Good luck! garner From: Derrick Stensrud [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 20, 2006 10:36 AM To: Garner Chung Cc:

Re: [GENERAL] Starting Postgresql

2006-12-20 Thread Uwe C. Schroeder
I think you're better off to use the official documentation. http://www.postgresql.org/docs/ (chose the docs for the version you're running on the right side of that page). The docs you're currently referencing are for 7.0 - which is stone-age postgresql. On Wednesday 20 December 2006 11:57,

Re: [GENERAL] Starting Postgresql

2006-12-20 Thread George Weaver
Original Message From Bob Pawley Here's the url http://fusion.gat.com/~osborne/dbdoc/postgres/postmaster.htm Bob, The above documentation is circa version 7.0. It might be easier to use the current PostgreSQL official documentation. See for example:

Re: FW: [GENERAL] postgres kerberos how to

2006-12-20 Thread Derrick Stensrud
We bit the bullet and upgraded to 8.2 so that we could get the built in ldap auth support, and boom! It worked out of the box. Thanks a million and special thanks to Magnus! Garner Chung wrote: Nope, no Unix accounts are necessary besides the one that PG runs as. You do need the PG roles,

Re: [GENERAL] Starting Postgresql

2006-12-20 Thread Richard Huxton
Bob Pawley wrote: Here's the url http://fusion.gat.com/~osborne/dbdoc/postgres/postmaster.htm As the others say, use the official docs. And perhaps drop osborne a note to let him know his docs are out of date. -- Richard Huxton Archonet Ltd ---(end of

Re: [GENERAL] xml2 install problem

2006-12-20 Thread Paul Silveira
ok. tried to install the correct libs and then do it but still same errors. Here is where I am now... # installed both rmp's that were necessary... rpm -i ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/i386/SRPMS/libxml2-2.6.16-6.src.rpm rpm -i

Re: [GENERAL] xml2 install problem

2006-12-20 Thread Alvaro Herrera
Paul Silveira wrote: ok. tried to install the correct libs and then do it but still same errors. Here is where I am now... # installed both rmp's that were necessary... rpm -i ftp://rpmfind.net/linux/redhat/enterprise/4/en/os/i386/SRPMS/libxml2-2.6.16-6.src.rpm rpm -i

Re: [GENERAL] Autovacuum Improvements

2006-12-20 Thread Russell Smith
Alvaro Herrera wrote: Matthew O'Connor wrote: Glen Parker wrote: If it isn't there somewhere already, I would ask to add: 4) Expose all information used by autovacuum to form its decisions. You could argue that this is already there, although not easy to get at I suppose. But

[GENERAL] Directly programmed query plans?

2006-12-20 Thread Josh ben Jore
I vaguely recall that there's an interface to PostgreSQL 7.3 where developers can directly feed it query plans. Can someone help me remember where this lived and whether it worked? The problem I'm looking at is that it's difficult to impossible to get optimal uses of indexes all the time. Some

Re: [GENERAL] Autovacuum Improvements

2006-12-20 Thread Glen Parker
Alvaro Herrera wrote: No, we currently don't expose the number of dead tuples which autovacuum uses. Patch submitted :-) ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail

[GENERAL] need help with plpgsql execute insert

2006-12-20 Thread developer
I am trying to loop through some data and then run insert some of the resulting data into a new table. I can create the function but when I run it i get the error: ERROR: query SELECT 'INSERT INTO payment ( id,amount,accepted_date, company_id , date , patient_responsible_party_id ,

Re: [GENERAL] need help with plpgsql execute insert

2006-12-20 Thread Adrian Klaver
On Wednesday 20 December 2006 7:36 pm, [EMAIL PROTECTED] wrote: I am trying to loop through some data and then run insert some of the resulting data into a new table. I can create the function but when I run it i get the error: ERROR: query SELECT 'INSERT INTO payment (

Re: [GENERAL] need help with plpgsql execute insert

2006-12-20 Thread Russell Smith
[EMAIL PROTECTED] wrote: I am trying to loop through some data and then run insert some of the resulting data into a new table. I can create the function but when I run it i get the error: ERROR: query SELECT 'INSERT INTO payment ( id,amount,accepted_date, company_id , date ,

Re: [GENERAL] xml2 install problem

2006-12-20 Thread Devrim GUNDUZ
Hi Paul, On Wed, 2006-12-20 at 14:07 -0800, Paul Silveira wrote: ok. tried to install the correct libs and then do it but still same errors. Here is where I am now... # installed both rmp's that were necessary... rpm -i

[GENERAL] Connecting performance

2006-12-20 Thread 马庆
Dear : These days, I come across a problem that I can’t solve i , so I ask U for help. Problem Description: I use RedHat AS 4 + PostgreSQL 8.1 as our server. As long as the server program starts, it’ll immediately open 10~20 connects to the DB to handle

Re: [GENERAL] need help with plpgsql execute insert

2006-12-20 Thread developer
On Wednesday 20 December 2006 7:36 pm, [EMAIL PROTECTED] wrote: I am trying to loop through some data and then run insert some of the resulting data into a new table. I can create the function but when I run it i get the error: ERROR: query SELECT 'INSERT INTO payment (

Re: [GENERAL] need help with plpgsql execute insert

2006-12-20 Thread developer
[EMAIL PROTECTED] wrote: I am trying to loop through some data and then run insert some of the resulting data into a new table. I can create the function but when I run it i get the error: ERROR: query SELECT 'INSERT INTO payment ( id,amount,accepted_date, company_id , date ,

Re: [GENERAL] Connecting performance

2006-12-20 Thread mike
Sounds like pgpool. http://pgpool.projects.postgresql.org/ On Thu, 2006-12-21 at 12:01 +0800, 马庆 wrote: Dear : These days, I come across a problem that I can’t solve i , so I ask U for help. Problem Description: I use RedHat AS 4 + PostgreSQL 8.1 as

[GENERAL] Need help on org.postgresql.util.PSQLException: FATAL: terminating connection due to administrator command

2006-12-20 Thread Wong Jowo
Hello,I'm using JSP for accessing postgre My postgre version is 8.1 running on suse enterprise 10 linux machine. My JSP container is Apache Tomcat 5.5. My connection method is JNDI(pooling). Recently I'm having trouble after my web application is being accessed by many users. My error log shows