Re: [GENERAL] queueing via database table?

2007-01-02 Thread Steve Atkins
On Jan 2, 2007, at 10:34 PM, Mark Harrison wrote: I have a cluster of CPUs generating thumbnails for a render farm. I would like to place thumbnail requests on a queue, and have the cluster of client dequeue the requests and process them. Of course, each request should be only dequeued once..

[GENERAL] queueing via database table?

2007-01-02 Thread Mark Harrison
I have a cluster of CPUs generating thumbnails for a render farm. I would like to place thumbnail requests on a queue, and have the cluster of client dequeue the requests and process them. Of course, each request should be only dequeued once... if a thumbnail is being processed by one CPU, it sh

Re: [GENERAL] Installing support for python on windows

2007-01-02 Thread novnov
Whew, python lang support just installed for me too. After reading more, it seems that while there is some broken dependency re DWMAPI.dll on windowsxp systems, it does not affect most programs. DWMAPI.dll is shown as missing by 'depends' but that exposes delay-loaded problems that may have littl

Re: [GENERAL] Installing support for python on windows

2007-01-02 Thread Adrian Klaver
On Monday 01 January 2007 6:24 pm, novnov wrote: > Thanks, the depends tools looks very handy, surprising I'd not heard of it > before. > > I found that the postgresql\bin dir must be added to the path. > > Also, I had python 2.5 installed, and plpython apparently needs python 2.4. > I've installed

Re: [GENERAL] Geographical redundancy

2007-01-02 Thread Ben
OK, well accepting data loss (even if it is "just" 6-12 hours worth) really opens up a lot of possibilities.. EXCEPT that you also said you want both sites to be able to modify data. Again, there is no real multi-master replication available for postgres, so you'll have to have both sites a

Re: [GENERAL] Combining data in different rows?

2007-01-02 Thread btober
Bruno Wolff III wrote: On Tue, Jan 02, 2007 at 12:33:14 -0700, Anthony Masinton <[EMAIL PROTECTED]> wrote: I would like to combine data from different rows in one column into one row. ... Is this possible and if so, how? Collapsing rows is done with aggregate functions. You c

Re: [GENERAL] Combining data in different rows?

2007-01-02 Thread Bruno Wolff III
On Tue, Jan 02, 2007 at 12:33:14 -0700, Anthony Masinton <[EMAIL PROTECTED]> wrote: > I would like to combine data from different rows in one column into > one row. > > I have two tables: 'locations' containing a dozen records about > cities and their geographic coodinates - the other table,

Re: [GENERAL] Combining data in different rows?

2007-01-02 Thread Richard Huxton
Anthony Masinton wrote: I would like to combine data from different rows in one column into one row. I have two tables: 'locations' containing a dozen records about cities and their geographic coodinates - the other table,'testators', contains several hundred records referring to wills (each

[GENERAL] Combining data in different rows?

2007-01-02 Thread Anthony Masinton
I would like to combine data from different rows in one column into one row. I have two tables: 'locations' containing a dozen records about cities and their geographic coodinates - the other table,'testators', contains several hundred records referring to wills (each will is given a uniq

Re: [GENERAL] Geographical redundancy

2007-01-02 Thread Ben
On Sat, 30 Dec 2006, Dennis wrote: I was thinking of maybe just having 2nd location receive a PG dump (full or incremental) every so often (an hour to 6 hours) and if the main location fails majorly, restore the PG cluster from the dump and switch DNS settings on the actual sites. I can make s

Re: [GENERAL] PostgreSQL 8.2.1 expected release date?

2007-01-02 Thread Tom Lane
Clodoaldo <[EMAIL PROTECTED]> writes: > Where can I find the 8.2.1 release notes? They don't exist yet. You can dig through the pgsql-committers archives if you want to get an idea of what will be in them. regards, tom lane ---(end of broadcast)--

Re: [GENERAL] OS X Tiger, and PostgreSQL 8.2 don't mix?

2007-01-02 Thread Tom Lane
Seneca Cunningham <[EMAIL PROTECTED]> writes: > No, I've only dealt with 10.4. From what I've read Apple changes shm > configuration methods every couple 10.X or so. Yeah, they've changed the behavior at least three times :-(. According to our notes at http://www.postgresql.org/docs/8.2/static/k

Re: [GENERAL] PostgreSQL 8.2.1 expected release date?

2007-01-02 Thread Clodoaldo
2007/1/2, Tom Lane <[EMAIL PROTECTED]>: Vlad <[EMAIL PROTECTED]> writes: > To be on the safe side I wanted to wait till 8.2.1 though - is there > any estimate for the release date? Real soon, possibly next week. The core committee is just now trying to agree on the release date... Where can

Re: [GENERAL] OS X Tiger, and PostgreSQL 8.2 don't mix?

2007-01-02 Thread Seneca Cunningham
On Tue, Jan 02, 2007 at 10:12:56AM -0700, Scott Ribe wrote: > > /etc/rc is what causes the values from /etc/sysctl.conf to be read in > > and used. Some values, such as the shm-related values are specified in > > the default /etc/rc after /etc/sysctl.conf is parsed up by /etc/rc and > > applied, b

Re: [GENERAL] PostgreSQL 8.2.1 expected release date?

2007-01-02 Thread Tom Lane
Vlad <[EMAIL PROTECTED]> writes: > To be on the safe side I wanted to wait till 8.2.1 though - is there > any estimate for the release date? Real soon, possibly next week. The core committee is just now trying to agree on the release date... regards, tom lane ---

Re: [GENERAL] PostgreSQL 8.2.1 expected release date?

2007-01-02 Thread Joshua D. Drake
On Tue, 2007-01-02 at 10:53 -0600, Vlad wrote: > Hello, > > with the switch to 8.2 I see a significant performance increase in > generating complex reports (something we need badly), so was thinking > about upgrading our production db to 8.2. > > To be on the safe side I wanted to wait till 8.2.1

Re: [GENERAL] OS X Tiger, and PostgreSQL 8.2 don't mix?

2007-01-02 Thread Scott Ribe
> /etc/rc is what causes the values from /etc/sysctl.conf to be read in > and used. Some values, such as the shm-related values are specified in > the default /etc/rc after /etc/sysctl.conf is parsed up by /etc/rc and > applied, but in 10.4 the kern.sysv.shm* values can only be set once. Do you k

Re: [GENERAL] Replacing all CHAR colums with VARCHAR

2007-01-02 Thread Bruno Wolff III
On Tue, Jan 02, 2007 at 02:37:59 +0200, Andrus <[EMAIL PROTECTED]> wrote: > > Also Tom Lane strongly recommends using VARCHAR always and never use CHAR > columns. If you just want to use Postgres, you might want to use 'text' instead of 'varchar', since you don't need to specify arbitrarylimit

[GENERAL] PostgreSQL 8.2.1 expected release date?

2007-01-02 Thread Vlad
Hello, with the switch to 8.2 I see a significant performance increase in generating complex reports (something we need badly), so was thinking about upgrading our production db to 8.2. To be on the safe side I wanted to wait till 8.2.1 though - is there any estimate for the release date? -- Vl

Re: [GENERAL] Replacing all CHAR colums with VARCHAR

2007-01-02 Thread Richard Huxton
Andrus wrote: I have CHAR columns in database in 500 tables. There are currently no VARCHAR columns. My C# application receives character data with trailing spaces from npgsql. Yep - that's what CHAR is for. This makes application code complicated. Application must remove trailing spaces fr

Re: [GENERAL] About auto_increment

2007-01-02 Thread Ragnar
On mán, 2007-01-01 at 21:21 -0800, Yesh wrote: > I need to know how to increment a primary key field automatically in run > time. Will SERIAL do what you want? gnari ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send

Re: [GENERAL] About auto_increment

2007-01-02 Thread James Neff
Yesh wrote: Hi, I need to know how to increment a primary key field automatically in run time. If you use the "serial" data type, the database does this for you automatically and you don't have to worry about it. Is this the data type your using? -- James Neff Technology Specialist T

Re: [GENERAL] About auto_increment

2007-01-02 Thread Raymond O'Donnell
On 1 Jan 2007 at 21:21, Yesh wrote: > I need to know how to increment a primary key field automatically in > run time. Use type SERIAL as your primary key - here is the relevant page in the docs: http://www.postgresql.org/docs/8.2/static/datatype- numeric.html#DATATYPE-SERIAL HTH, --Ray. -

Re: [GENERAL] Geographical redundancy

2007-01-02 Thread Raymond O'Donnell
On 30 Dec 2006 at 0:22, Dennis wrote: > I was thinking of maybe just having 2nd location receive a PG dump > (full or incremental) every so often (an hour to 6 hours) and if the Just curious - how do you do an incremental dump? I had to do something similar recently, and ended up effectively rol

Re: [GENERAL] About auto_increment

2007-01-02 Thread Richard Huxton
Yesh wrote: Hi, I need to know how to increment a primary key field automatically in run time. Not sure precisely what you want to know, but read up on the SERIAL type, sequences, nextval() and currval(). -- Richard Huxton Archonet Ltd ---(end of broadcast)---

Re: [GENERAL] Geographical redundancy

2007-01-02 Thread Dennis
I was thinking of maybe just having 2nd location receive a PG dump (full or incremental) every so often (an hour to 6 hours) and if the main location fails majorly, restore the PG cluster from the dump and switch DNS settings on the actual sites. I can make sure all website files are always in s

[GENERAL] Schema and Function names

2007-01-02 Thread kenp
Is it possible to get the names of the schema and function within a plpgsql function? It is possible to get this information inside a trigger using TG_TABLE_SCHEMA and TG_TABLE_NAME. I would like to get these values inside every function I write to display in all error messages. Regards Ken ---

[GENERAL] Replacing all CHAR colums with VARCHAR

2007-01-02 Thread Andrus
I have CHAR columns in database in 500 tables. There are currently no VARCHAR columns. My C# application receives character data with trailing spaces from npgsql. This makes application code complicated. Application must remove trailing spaces from incoming data for C# string manipulation to wo

Re: [GENERAL] Backup Restore

2007-01-02 Thread Bob Pawley
Hi Dave I can get the restore working if I dump the project spelling out "*.backup" and not relying on the default. However the restore is being aborted due to a pk error for the spatial coordinates. I've removed the gis feature from both applications but still get the error. Any thoughts

[GENERAL] About auto_increment

2007-01-02 Thread Yesh
Hi, I need to know how to increment a primary key field automatically in run time. -- View this message in context: http://www.nabble.com/About-auto_increment-tf2906530.html#a8120183 Sent from the PostgreSQL - general mailing list archive at Nabble.com. ---(end of b

[GENERAL] ldap auth problem

2007-01-02 Thread Ing. Dan Horáček
Hi, I've just installed postgres 8.2.0-1 for win32 and wanted to try out the built-in LDAP support(with Openldap and Novell eDirectory). The following LDAP authentication was added to "pg_hba.conf" : Openldap: host all all 127.0.0.1/32 ldap ldap://localhost/dc=d

Re: [GENERAL] Geographical redundancy

2007-01-02 Thread Dennis
- Yes, both sites have to be online and changing data at the same time. - data loss is unacceptable - platform is Gentoo Linux - downtime of up to 1 day is acceptable as long as there is no data loss - throughput latency -> internet over 10megabit line Ben <[EMAIL PROTECTED]> wrote: Sure, there a

Re: [GENERAL] regular expression limit

2007-01-02 Thread Tom Lane
Ron Peterson <[EMAIL PROTECTED]> writes: >> Sorry, I don't believe 8.1 took it either. > Hmm, my test table fails in 8.1.4 also, but my actual use case works in > 8.1.4 but not 8.2. You haven't shown us exactly what that C function is doing, but my interpretation of that is that 8.1 failed to che

Re: [GENERAL] regular expression limit

2007-01-02 Thread Ron Peterson
On Mon, Jan 01, 2007 at 11:30:00PM -0500, Tom Lane wrote: > Ron Peterson <[EMAIL PROTECTED]> writes: > > I believe there's been a change in PostgreSQL's regular expression > > handling w/ 8.2. > > Compared to what? A repeat count of 256 has been an error at least > since 7.4, and is documented as

Re: [GENERAL] [ADMIN] OUTER JOIN IS SLOW

2007-01-02 Thread Alban Hertroys
Benjamin Arai wrote: > Just to make things more clear I ran EXPLAIN ANALYZE on the slow query. > I got > -> Index Scan using mutualfd_weekday_qbid_pkey_idx on > mutualfd_weekday_qbid (cost=0.00..6.01 rows=1 width=19) (actual > time=34.579..8510.801 rows=253 loops=1) > Index Cond: ((pk

Re: [GENERAL] Backup Restore

2007-01-02 Thread Richard Huxton
Bob Pawley wrote: Following is the error message on pg_restore:- "pg_restore: ERROR: duplicate key violates unique constraint "spatial_ref_sys_pkey" CONTEXT: COPY spatial_ref_sys, line 1: "2000 EPSG 2000 PROJCS["Anguilla 1957 / British West Indies Grid",GEOGCS["Anguilla 1957",DATUM["Angui...

Re: [GENERAL] Why ContinueUpdateOnError is not implemented in npgsql

2007-01-02 Thread Richard Huxton
Andrus wrote: Why MS SQL server and Oracle does not have this issue and implement ContinueUpdateOnError fast ? Is this issue caused by PostgreSQL design failure ? Design decision. An error in a transaction renders that transaction incomplete. If it's incomplete then it can't be committed. Ot

Re: [GENERAL] select union with table name

2007-01-02 Thread Alban Hertroys
Reece Hart wrote: > On Thu, 2006-12-28 at 19:09 +0700, Akbar wrote: > Note the 'all' after union... I suspect you'll want that or should at > least consider it. Not using it will give the exact same results in a slower way; 'blue' and 'red' are different, after all. You'll be hard pressed to find

Re: [GENERAL] Application validation of data on insert

2007-01-02 Thread Richard Huxton
John Cohorn wrote: It seems to me that all information about acceptable values, constraints and types for columns is already present within the table definitions so duplicating those checks and definitions within the application and user view is folly. Well, there I'd disagree with you. With a