Re: [GENERAL] Socket command type I unknown

2006-02-03 Thread Tom Lane
Joel Richard <[EMAIL PROTECTED]> writes: > ... we occasionally get the following message in our apache log > file. I'm looking for information on what it means: >DBD::Pg::db selectrow_array failed: FATAL: Socket command type I > unknown This looks to me like a protocol-level incompatibil

[GENERAL] Socket command type I unknown

2006-02-03 Thread Joel Richard
Good evening, I hope that I am posting this to the right place. If not, please direct me to the appropriate mailing list and I will send to that one instead. Background Info: Debian Linux (Sarge) Server A -- Apache 2.0.54 + mod_perl + DBD::Pg Server B -- PostgreSQL 7.3.4, Compiled,

[GENERAL] Should I use PL/PGSQL or Perl/PGSQL?

2006-02-03 Thread Tyler MacDonald
I've been wondering, does anybody know which is more likely to be installed on a postgresql server? Which is faster? I'm writting an application in perl that is going to need to get broad information about heiarchial data (how many parents, settings common on parents, etc), and I'd like to

Re: [GENERAL] Bug with sequences and WAL ?

2006-02-03 Thread Tom Lane
Philippe Ferreira <[EMAIL PROTECTED]> writes: > If a new sequence is created, its creation is propagated via WAL. > However, instead of getting the property 'is_called'=false (the correct > value before its first use), > we get 'is_called'=true after a PITR recovery. > Is it a bug, or a normal b

Re: [GENERAL] Error with temporary tables

2006-02-03 Thread Bruce Momjian
Read the FAQ. --- Claire McLister wrote: > Hi, > > I'm using a pgsql function that begins by creating a temporary > table, does some processing, and then drops the temporary table just > before exiting. It has been w

[GENERAL] Error with temporary tables

2006-02-03 Thread Claire McLister
Hi, I'm using a pgsql function that begins by creating a temporary table, does some processing, and then drops the temporary table just before exiting. It has been working fine for a while now, but suddenly complains for some calls that "Relation with OID" does not exist, at the point w

Re: [GENERAL] Number format problem

2006-02-03 Thread Peter Eisentraut
Stéphane SCHILDKNECHT wrote: > select to_char(1485.12, '9G999D99'); > But, surprinsingly, I got 1,1485,12. The fr_FR locale is broken. You should report this to glibc. -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)---

Re: [GENERAL] How to find first non-vacation day

2006-02-03 Thread Chris Browne
"Andrus Moor" <[EMAIL PROTECTED]> writes: > I have a table of vacations > > create table vacation ( > id integer primary key, > dstart date, > dend date ); > > > I need to find first non-vacation day before given date. > > This can be done using the following procedural vfp code > > function nonva

Re: [GENERAL] How to find first non-vacation day

2006-02-03 Thread Chris Browne
[EMAIL PROTECTED] (Philip Hallstrom) writes: >>> I have a table of vacations >>> create table vacation ( >>> id integer primary key, >>> dstart date, >>> dend date ); >>> I need to find first non-vacation day before given date. >>> This can be done using the following procedural vfp code >>> funct

[GENERAL] Bug with sequences and WAL ?

2006-02-03 Thread Philippe Ferreira
Hi, If a new sequence is created, its creation is propagated via WAL. However, instead of getting the property 'is_called'=false (the correct value before its first use), we get 'is_called'=true after a PITR recovery. Is it a bug, or a normal behaviour ? (version of PostgreSQL : 8.0.4) Thank

Re: [GENERAL] How to find first non-vacation day

2006-02-03 Thread Philip Hallstrom
I have a table of vacations create table vacation ( id integer primary key, dstart date, dend date ); I need to find first non-vacation day before given date. This can be done using the following procedural vfp code function nonvacation( dbefore ) for i=dbefore to date(1960,1,1) step -1 se

Re: [GENERAL] How to find first non-vacation day

2006-02-03 Thread Philip Hallstrom
I have a table of vacations create table vacation ( id integer primary key, dstart date, dend date ); I need to find first non-vacation day before given date. This can be done using the following procedural vfp code function nonvacation( dbefore ) for i=dbefore to date(1960,1,1) step -1 se

[GENERAL] How to find first non-vacation day

2006-02-03 Thread Andrus Moor
I have a table of vacations create table vacation ( id integer primary key, dstart date, dend date ); I need to find first non-vacation day before given date. This can be done using the following procedural vfp code function nonvacation( dbefore ) for i=dbefore to date(1960,1,1) step -1 se

Re: [GENERAL] grouping of functions

2006-02-03 Thread Rikard Pavelic
Tom Lane wrote: Is there any way to group functions logically? Put them in different schemas, perhaps? I thought of that, but that is not what I want. I want function to be in more that one group, so this would cause even more mess. Best regards, Rikard

Re: [GENERAL] grouping of functions

2006-02-03 Thread Tom Lane
Rikard Pavelic <[EMAIL PROTECTED]> writes: > Is there any way to group functions logically? Put them in different schemas, perhaps? regards, tom lane ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] Error: "could not read from statistics collector pipe"

2006-02-03 Thread Merlin Moncure
> 2006-01-27 10:37:29 FATAL could not read from statistics collector >pipe: No error > 2006-01-27 10:37:30 LOGstatistics collector process (PID 5940) >was terminated by signal 1 > try turning row level statistics off (or, during bulk ins

[GENERAL] grouping of functions

2006-02-03 Thread Rikard Pavelic
Hi! Is there any way to group functions logically? It's get pretty frustrating to locate some function when you have 500+ functions :( And if there isn't is there any plan to add this functionality? Thanks, Rikard ---(end of broadcast)---

Re: [GENERAL] regarding debugging?

2006-02-03 Thread SunWuKung
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > > where we can check the execution of our program or we can dry run our code, > > is > > there aby option or feature with PGSQL for the same purpose that we can > > check > > our PGSQL statements? > > No, unfortunately not. What I do i

Re: [GENERAL] PgSQL as part of commercial product

2006-02-03 Thread Uwe C. Schroeder
I bet donations to support the project are appreciated. Other than that, the postgreSQL license is BSD - which basically means you can do whatever you want, you just can't sue anyone if it's not working. This has been answered a thousand times, so checking mailing list archives and the FAQ shou

Re: [GENERAL] C Language Stored Procedure Returning No Data

2006-02-03 Thread Michael Fuhr
On Fri, Feb 03, 2006 at 09:07:48AM -0500, Jeff Trout wrote: > On Feb 2, 2006, at 7:17 PM, Michael Fuhr wrote: > >If you declare the function with "RETURNS bytea" then the function > >must return something; if zero-length data and NULL aren't suitable > >for indicating no data then you could raise a

Re: [GENERAL] Primary keys for companies and people

2006-02-03 Thread Merlin Moncure
> I definitely agree with you here, Merlin. Mutability is not the issue > at hand. May I ask what strategies you use for determining uniqueness > for people? Well, that depends on the particular problem at hand. If you had two john smiths in your system, how would you distinguish them? If you ass

Re: [GENERAL] Postgres 7.3.2 -> 8.1.2 upgrade performance issue

2006-02-03 Thread David Brain
OK - spent some more time profiling what was going on on both the client and server machine. It began ti look more like a connector problem (I was seeing low CPU usage on both client & server and could see very slow BIND/INSERT/COMMIT commands being sent to the db). Upgraded to Npgsql 1.0beta

[GENERAL] performance about trigger (after insert, update, delete)

2006-02-03 Thread Emi Lu
Hello, I have a question about the performance of trigger/trigger functions. For example, I had a trigger setup as : *CREATE TRIGGER track_tableOperation AFTER INSERT OR UPDATE OR DELETE **ON tableName FOR EACH ROW** EXECUTE PROCEDURE tracking_info(); A track table as: ( table_name, username

Re: [GENERAL] Postgres 7.3.2 -> 8.1.2 upgrade performance issue

2006-02-03 Thread David Brain
Tom Lane wrote: Did you remember to VACUUM ANALYZE after loading the data? It sounds to me like bad choices of plans ... Yes - although I have autovacuum off, partly to make an apples to apples comparison with 7.3 and partly due to the nature of the app. On the application side I'm con

Re: [GENERAL] logging settings

2006-02-03 Thread Mott Leroy
Tom Lane wrote: I think you're getting bit by a standard beginner gotcha: commenting out an entry in postgresql.conf will not change the state of a running postmaster. (A comment is a no-op, eh?) You need to put in a non-comment entry that sets the desired state. This was indeed the case. I

Re: [GENERAL] Postgres 7.3.2 -> 8.1.2 upgrade performance issue

2006-02-03 Thread Woody Woodring
Did you analyze after you imported the dump? Woody -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Brain Sent: Friday, February 03, 2006 10:03 AM To: pgsql-general@postgresql.org Subject: [GENERAL] Postgres 7.3.2 -> 8.1.2 upgrade performance issue

Re: [GENERAL] Postgres 7.3.2 -> 8.1.2 upgrade performance issue

2006-02-03 Thread Tom Lane
David Brain <[EMAIL PROTECTED]> writes: > Recently tried an upgrade from 7.3.2 to 8.1.2. The actual upgrade went > pretty well. However my application is now getting >10 times slower > INSERT times than it was under 7.3.2. As far as possible I mirrored the > settings in postgresql.conf (obvio

[GENERAL] Number format problem

2006-02-03 Thread Stéphane SCHILDKNECHT
Hi, There seems to be some tricky behaviour with number formating and french locale. I tried the following request: select to_char(1485.12, '9G999D99'); I was expecting to get: 1 485,12 But, surprinsingly, I got 1,1485,12. My postgresql server is an 8.1.2 version. The same problem occurs unde

Re: [GENERAL] error calling pgmail function

2006-02-03 Thread Tom Lane
indu ss <[EMAIL PROTECTED]> writes: > On executing the update statement i get error > CONTEXT: compile of PL/pgSQL function "pgmail" near > line 1 > PL/pgSQL function "test" line 10 at assignment Uh, you didn't show us the actual error, nor the problematic line within pgmail. (The reference to

[GENERAL] Postgres 7.3.2 -> 8.1.2 upgrade performance issue

2006-02-03 Thread David Brain
Hi, Recently tried an upgrade from 7.3.2 to 8.1.2. The actual upgrade went pretty well. However my application is now getting >10 times slower INSERT times than it was under 7.3.2. As far as possible I mirrored the settings in postgresql.conf (obviously I couldn't just drop in the old conf

[GENERAL] Number format problem

2006-02-03 Thread Stéphane SCHILDKNECHT
Hi, There seems to be some tricky behaviour with number formating ant french locale. i tried the following request: select to_char(1485.12, '9G999D99'); I was expecting to get: 1 485,12 But, surprinsingly, I got 1,1485,12. My postgresql server is an 8.1.2 version. The same problem occurs un

Re: [GENERAL] C Language Stored Procedure Returning No Data

2006-02-03 Thread Jeff Trout
On Feb 2, 2006, at 7:17 PM, Michael Fuhr wrote: On Wed, Feb 01, 2006 at 12:56:30PM -0500, [EMAIL PROTECTED] wrote: From a C stored procedure, how can I tell Postgres to pass on to the Java client that there is No Data? A zero length byte array or a null value is not the same as No Data. If y

Re: [GENERAL] Alternative to knoda, kexi and rekall?

2006-02-03 Thread Magnus Hagander
> > PgAdmin III is available on Debian. Its package name is > pgadmin3. Try doing: > > > > apt-cache show pgadmin3 > > I am running Sarge and have found only pgaccess. > So it is in Testing or Unstable... You need to add one of the pgsql mirrors to get it. See http://www.pgadmin.org/download/de

Re: [GENERAL] Alternative to knoda, kexi and rekall?

2006-02-03 Thread Michelle Konzack
Am 2006-02-02 14:19:42, schrieb Juan Jose Comellas: > PgAdmin III is available on Debian. Its package name is pgadmin3. Try doing: > > apt-cache show pgadmin3 I am running Sarge and have found only pgaccess. So it is in Testing or Unstable... Will look for it tomorrow. Greetings Michelle Ko

Re: [GENERAL] PgSQL as part of commercial product

2006-02-03 Thread Bruce Momjian
Read our FAQ. --- Arun Kannapiran wrote: > Dear Sir/Madam, > > I would appreciate it if you could answer the below queries. > > What are the licencing requirements for PgSQL ? > > The company I work for is building a clie

[GENERAL] PgSQL as part of commercial product

2006-02-03 Thread Arun Kannapiran
Dear Sir/Madam, I would appreciate it if you could answer the below queries. What are the licencing requirements for PgSQL ? The company I work for is building a client-server application with a PgSQL backend to be sold commercially on the market, are there any licencing or other payments that n

[GENERAL] error calling pgmail function

2006-02-03 Thread indu ss
Hello, I want to send mail on update of a field in a table. I'm using pgmail() function (from sourceforge) . I'm calling this function from another function which is called by trigger on update of the field. On executing the update statement i get error CONTEXT: compile of PL/pgSQL function "p

Re: [GENERAL] Automating backup

2006-02-03 Thread Doug McNaught
Richard Sydney-Smith <[EMAIL PROTECTED]> writes: > pch := pchar('pg_dump -C -h '+host+' -U '+usr+' -p '+pswd+ ' -f > '+bckup_path+' '+dbase); > > to postgres. > > as the operator is obviously logged in how do I > (1) trap their user id > (2) Send the call to pg_dump without knowing their pas

Re: [GENERAL] News from IBM (DB2)

2006-02-03 Thread Michael Crozier
On Fri, 3 Feb 2006, Nicolay A Vasiliev wrote: > Hello there! > > http://news.zdnet.co.uk/software/0,39020381,39249666,00.htm > > What do you think about this? > > Nicolay > > > ---(end of broadcast)--- > TIP 6: explain analyze is your friend >