[GENERAL] PostgreSQL Docs for Paper (benchmark and contrib)

2004-06-22 Thread Troy Campano
Hello, I’m writing a paper on PostgreSQL.   I’m looking for: 1)   benchmark comparisons of PostgreSQL against other databases 2)   Detailed descriptions (or project web sites) of all the ‘contrib’ projects (like dbsize, tsearch, xml, etc).   Could someone point me in the rig

[GENERAL] 7.5 Windows version

2004-06-22 Thread Jonathan Barnhart
Is there any chance I can get a pre-release executable of the Windows native Postgresql so I can start doing some application development? I do not intend to deploy a buggy postgres, but even if it goes boom occasionally it will allow me to build the app so that when everything is finalized I'm mo

Re: [GENERAL] 7.5 Windows version

2004-06-22 Thread Bernard Clement
Hello Jonathan, Take look at URL: http://techer.pascal.free.fr/postgis/psqlwin/ That French guy has a binary version of PG for Windows. The zip is at URL: http://techer.pascal.free.fr/postgis/psqlwin.zip Note that I did not tried it! Good luck! Bernard On Tuesday 22 June 2004 15:13, Jonathan

[GENERAL] More psql problems... >.

2004-06-22 Thread Madison Kelly
Hi all, I have got to say that my first foray into postgresSQL is becoming a very madening experience... I am sure it is my own fault for not knowing very much but it seems that everything I have tried so far to improve performance has in fact made it a lot worse. Now my program dies after ro

Re: [GENERAL] PostgreSQL Docs for Paper (benchmark and contrib)

2004-06-22 Thread Richard Huxton
Troy Campano wrote: Hello, I'm writing a paper on PostgreSQL. I'm looking for: 1) benchmark comparisons of PostgreSQL against other databases You might want to start here: http://osdb.sourceforge.net/ Or if you go here, http://pgfoundry.org/ on the right-hand side is a project to start

Re: [GENERAL] 7.5 Windows version

2004-06-22 Thread Richard Huxton
Jonathan Barnhart wrote: Is there any chance I can get a pre-release executable of the Windows native Postgresql so I can start doing some application development? I do not intend to deploy a buggy postgres, but even if it goes boom occasionally it will allow me to build the app so that when every

Re: [GENERAL] More psql problems... >.

2004-06-22 Thread Alvaro Herrera
On Tue, Jun 22, 2004 at 03:52:03PM -0400, Madison Kelly wrote: > What is happening now is that the program does an 'ls' (system call) > to get a list of the files and directories starting at the root of a > mounted partition. These are read into an array which perl then > processes one at a t

Re: [GENERAL] More psql problems... >.

2004-06-22 Thread Madison Kelly
Alvaro Herrera wrote: On Tue, Jun 22, 2004 at 03:52:03PM -0400, Madison Kelly wrote: What is happening now is that the program does an 'ls' (system call) to get a list of the files and directories starting at the root of a mounted partition. These are read into an array which perl then process

Re: [GENERAL] 7.5 Windows version

2004-06-22 Thread Holger Hoffstaette
On Tue, 22 Jun 2004 12:13:01 -0700, Jonathan Barnhart wrote: > Is there any chance I can get a pre-release executable of the Windows > native Postgresql so I can start doing some application development? I do > not intend to deploy a buggy postgres, but even if it goes boom > occasionally it will

Re: [GENERAL] Problem while OS-Update

2004-06-22 Thread Heiko Pohl
Tom Lane wrote: Heiko Pohl <[EMAIL PROTECTED]> writes: -bash-2.05b$ /usr/local/pgsql/bin/postmaster -D /var/lib/pgsql.old/data FATAL 2: The database cluster was initialized with LC_COLLATE 'de_DE.UTF-8' and LC_CTYPE 'de_DE.UTF-8', but the server was compiled without locale support.

[GENERAL] Connection gets into state where all queries fail

2004-06-22 Thread Scott Ribe
OK, I'm using a pool of worker threads that each have a connection (from my own software, no PHP or anything like that involved), and a connection is in a state where all queries fail. Looking back through the log I find the first entry where this connection has an error (there are successful queri

Re: [GENERAL] More psql problems... >.

2004-06-22 Thread Martijn van Oosterhout
On Tue, Jun 22, 2004 at 03:52:03PM -0400, Madison Kelly wrote: > Hi all, > > I have got to say that my first foray into postgresSQL is becoming a > very madening experience... I am sure it is my own fault for not knowing > very much but it seems that everything I have tried so far to improve

[GENERAL] flock user defined function

2004-06-22 Thread Chris Goughnour
I'm trying to write two C language user defined functions, lockfile() and unlockfile(), that call flock using LOCK_EX and LOCK_UN respectively. If I call lockfile from a first psql process it returns successfully. Calling lockfile from a second psql process blocks. However, when I call unlockfile

Re: [GENERAL] [ANNOUNCE] == PostgreSQL Weekly News - June 22nd 2004

2004-06-22 Thread Rick Gigger
Don't forget the auto-vacuum daemon! Martijn van Oosterhout wrote: Crikey! Tablespaces, Win32, nested transactions and PITR. Almost worth a version 8 :) On Tue, Jun 22, 2004 at 12:37:39AM -0400, Robert Treat wrote: == PostgreSQL Weekly News - June 22nd 2004 == ---(end of b

Re: [GENERAL] flock user defined function

2004-06-22 Thread Martijn van Oosterhout
On Tue, Jun 22, 2004 at 02:49:27PM -0700, Chris Goughnour wrote: > I'm trying to write two C language user defined functions, lockfile() and > unlockfile(), that call flock using LOCK_EX and LOCK_UN respectively. If I > call lockfile from a first psql process it returns successfully. Calling > lo

Re: [GENERAL] Connection gets into state where all queries fail

2004-06-22 Thread Martijn van Oosterhout
On Tue, Jun 22, 2004 at 03:06:39PM -0600, Scott Ribe wrote: > OK, I'm using a pool of worker threads that each have a connection (from my > own software, no PHP or anything like that involved), and a connection is in > a state where all queries fail. Looking back through the log I find the > first

Re: [GENERAL] Connection gets into state where all queries fail

2004-06-22 Thread Scott Ribe
>> OK, I'm using a pool of worker threads that each have a connection (from my >> own software, no PHP or anything like that involved), and a connection is in >> a state where all queries fail. Looking back through the log I find the >> first entry where this connection has an error (there are succ

Re: [GENERAL] Connection gets into state where all queries fail

2004-06-22 Thread Martijn van Oosterhout
On Tue, Jun 22, 2004 at 04:30:15PM -0600, Scott Ribe wrote: > > All your queries will be ignored until you complete the transaction, > > either with a commit or a rollback. I find the message very clear, how > > do you think it could be reworded to be more clear? > > What's not clear is why I shou

Re: [GENERAL] flock user defined function

2004-06-22 Thread Tom Lane
Chris Goughnour <[EMAIL PROTECTED]> writes: > Any suggestions? Thanks in advance. I believe locks are associated with file descriptors (what you're miscalling a handle). The unlock function cannot release a lock that is held via a different descriptor. What it needs to be doing is closing the de

Re: [GENERAL] flock user defined function

2004-06-22 Thread Doug McNaught
Martijn van Oosterhout <[EMAIL PROTECTED]> writes: > On Tue, Jun 22, 2004 at 02:49:27PM -0700, Chris Goughnour wrote: >> I'm trying to write two C language user defined functions, lockfile() and >> unlockfile(), that call flock using LOCK_EX and LOCK_UN respectively. If I >> call lockfile from a

[GENERAL] Planner choice & tuning

2004-06-22 Thread Ed L.
The planner is choosing a sequential scan for my query. I am trying to understand why since it is clearly not the fastest choice, and what the proper tuning dial is to adjust here. Here's the query: select count(1) from measurement where measure_id = 98; TIA. Here are the details: %

Re: [GENERAL] flock user defined function

2004-06-22 Thread Chris Goughnour
Thanks. Yeah, I figured that out after Martijn's response. I'm just returning the file descriptor from lockFile, passing it to unlockFile and closing the descriptor there. It works fine now. Thanks for edifying a clueless novice such as myself. :-) > Chris Goughnour <[EMAIL PROTECTED]> writes: >>

Re: [GENERAL] Connection gets into state where all queries fail

2004-06-22 Thread Tom Lane
Martijn van Oosterhout <[EMAIL PROTECTED]> writes: > On Tue, Jun 22, 2004 at 04:30:15PM -0600, Scott Ribe wrote: >> What's not clear is why I should be told this when the invalid query ended >> with a commit. > Hmm, it only happens when you send the whole lot in a single query > strings. That's no

Re: [GENERAL] Planner choice & tuning

2004-06-22 Thread Scott Marlowe
On Tue, 2004-06-22 at 16:47, Ed L. wrote: > The planner is choosing a sequential scan for my query. I am trying > to understand why since it is clearly not the fastest choice, and > what the proper tuning dial is to adjust here. Here's the query: > > select count(1) from measurement where

Re: [GENERAL] More psql problems... >.

2004-06-22 Thread Scott Marlowe
On Tue, 2004-06-22 at 13:52, Madison Kelly wrote: > Hi all, > >I have got to say that my first foray into postgresSQL is becoming a > very madening experience... I am sure it is my own fault for not knowing > very much but it seems that everything I have tried so far to improve > performanc

Re: [GENERAL] Planner choice & tuning

2004-06-22 Thread Tom Lane
"Ed L." <[EMAIL PROTECTED]> writes: > This seems to be saying the planner thinks its less expensive to do the > sequential scan, but why? Because it thinks it's less expensive ;-) There are a couple issues here: one is overestimation of the number of rows matching the query. That is a statistica

Re: [GENERAL] More psql problems... >.

2004-06-22 Thread Madison Kelly
Scott Marlowe wrote: My previous question was performance based, now I just need to get the darn thing working again. Like I said, after ~300 seconds perl dies. If I disable auto-commit then it dies the first time it runs an insert. (this is all done on the same table; 'file_dir'). If I add a

[GENERAL] Deleting all but one row of a list of non-uniques

2004-06-22 Thread Zak McGregor
Hi all I have a table, for simplicity's sake containing one field, called unid. for example, select unid, oid from table gives me something like this: unid | oid -+- XNO24ORK | 40276607 XNPGJDPU | 40276673 * XNPGJDPU | 40276674 * XNXAAVQ2 | 40277583 ZAZAFAA4 | 40

Re: [GENERAL] Deleting all but one row of a list of non-uniques

2004-06-22 Thread Martijn van Oosterhout
On Wed, Jun 23, 2004 at 02:17:50AM +0200, Zak McGregor wrote: > Hi all > > > I have a table, for simplicity's sake containing one field, called unid. > (I've marked the rows with duplicated unids with the * to the right) > > I'd like to delete rows in such a way that one (and any one) row fo

Re: [GENERAL] Connection gets into state where all queries fail

2004-06-22 Thread Scott Ribe
>From Martijn van Oosterhout: > Hmm, it only happens when you send the whole lot in a single query > strings. That's not recommended IIRC. And from Tom Lane: > When you send multiple commands in a single query string, the entire > string is thrown away after an error. That's how it's always wor

Re: [GENERAL] Deleting all but one row of a list of non-uniques

2004-06-22 Thread Andrew Bartley
Try this. Create a temp table with a list of the duplicate unid's eg create temp table duplicates as select min(oid) as oid_val, unid from group by unid having count(*) > 1; Then isolate the unwanted rows update set unid = null from duplicates where .unid = duplicates.unid and oid_val

Re: [GENERAL] Connection gets into state where all queries fail

2004-06-22 Thread Martijn van Oosterhout
On Tue, Jun 22, 2004 at 07:02:28PM -0600, Scott Ribe wrote: > I suppose psql sends either a commit or rollback after the query generates > the error, maybe after every query, so my attempt to use it to check this > wasn't a valid test. Nope, psql breaks the statements on ';' and sends each query i