[GENERAL] Import to excel to postgres based website?

2007-07-22 Thread novnov
The answer may or many not be very postgres specific but...what are some possible routes that I could take to allows users to upload data from excel into a postgres via a website? I've never tried anything like this before. Are there standard modules that might help with this or will I have to cre

Re: [GENERAL] posgres tunning

2007-07-22 Thread Gavin M. Roy
You might want to look at pgBouncer to pool your drupal pgsql needs. I've found with 2000 needed connections, I can pool out to only 30 backends and still push 8k transactions per second. On 7/21/07, Arnaldo Gandol <[EMAIL PROTECTED]> wrote: I have a drupal site working with postgres that do

Re: [GENERAL] Foreign key constraint question

2007-07-22 Thread Perry Smith
On Jul 22, 2007, at 10:35 AM, Alvaro Herrera wrote: Nis Jørgensen wrote: Alvaro Herrera skrev: Nis Jørgensen wrote: What if, for instance, I want to render a list of shapes? To render the shape, I need to get its data, to get its data, I need to know what type it is. ISTM that the easiest w

Re: [GENERAL] Debugging postgresql source on gdb

2007-07-22 Thread Shreya Bhargava
Thanks very much for the suggestions! will try them out regards, Shreya Sibte Abbas <[EMAIL PROTECTED]> wrote: On 7/22/07, Sibte Abbas wrote: > On 7/22/07, Tom Lane wrote: > > Shreya Bhargava writes: > > > 1. gdb postgres > > > 2. set args -D test (test is my dbcluster) > > > 3. b h

Re: [GENERAL] Difference between PRIMARY KEY index and UNIQUE-NOT NULL index

2007-07-22 Thread Tom Lane
Vincenzo Romano <[EMAIL PROTECTED]> writes: > On Sunday 22 July 2007 19:20:08 Tom Lane wrote: >> With what index, pray tell? > In the original setup, the "UNIQUE" constraint had been dropped > *before* doing the tests. So the "slow" case is without the > UNIQUE constraint but with an index on NOT

Re: [GENERAL] Difference between PRIMARY KEY index and UNIQUE-NOT NULL index

2007-07-22 Thread Vincenzo Romano
On Sunday 22 July 2007 19:20:08 Tom Lane wrote: > Vincenzo Romano <[EMAIL PROTECTED]> writes: > > In the original setup, the "UNIQUE" constraint had been dropped > > *before* doing the tests. So the "slow" case is without the > > UNIQUE constraint but with an index. The NOT NULL was instead > > the

Re: [GENERAL] Debugging postgresql source on gdb

2007-07-22 Thread Sibte Abbas
On 7/22/07, Sibte Abbas <[EMAIL PROTECTED]> wrote: On 7/22/07, Tom Lane <[EMAIL PROTECTED]> wrote: > Shreya Bhargava <[EMAIL PROTECTED]> writes: > > 1. gdb postgres > > 2. set args -D test (test is my dbcluster) > > 3. b hashbuild(this is the function i want to break on) > > 4. run > > You've set

Re: [GENERAL] Debugging postgresql source on gdb

2007-07-22 Thread Sibte Abbas
On 7/22/07, Tom Lane <[EMAIL PROTECTED]> wrote: Shreya Bhargava <[EMAIL PROTECTED]> writes: > 1. gdb postgres > 2. set args -D test (test is my dbcluster) > 3. b hashbuild(this is the function i want to break on) > 4. run You've set the breakpoint in the postmaster process. It won't propagate t

Re: [GENERAL] Difference between PRIMARY KEY index and UNIQUE-NOT NULL index

2007-07-22 Thread Tom Lane
Vincenzo Romano <[EMAIL PROTECTED]> writes: > In the original setup, the "UNIQUE" constraint had been dropped > *before* doing the tests. So the "slow" case is without the UNIQUE > constraint but with an index. The NOT NULL was instead there. With what index, pray tell? re

Re: [GENERAL] Foreign key constraint question

2007-07-22 Thread Alvaro Herrera
Nis Jørgensen wrote: > Alvaro Herrera skrev: > > Nis Jørgensen wrote: > > > >> What if, for instance, I want to render a list of shapes? > >> > >> To render the shape, I need to get its data, to get its data, I > >> need to know what type it is. ISTM that the easiest way to achieve > >> this is s

Re: [GENERAL] shp2pgsql Help with sintax!

2007-07-22 Thread Michael Fuhr
On Tue, Jul 17, 2007 at 09:46:42AM -0700, GPS Blaster wrote: > Hi! New to postgres, im trying to import shapefiles into postgres 8.2 > using shp2pgsql but so far have failed. What have you tried and how did it fail? You might get more help using PostGIS on postgis-users. http://postgis.refractio

Re: [GENERAL] Foreign key constraint question

2007-07-22 Thread Sergey Konoplev
Well, what about using inheritence and relation identifiers? ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] Foreign key constraint question

2007-07-22 Thread Nis Jørgensen
Alvaro Herrera skrev: > Nis Jørgensen wrote: > >> What if, for instance, I want to render a list of shapes? >> >> To render the shape, I need to get its data, to get its data, I >> need to know what type it is. ISTM that the easiest way to achieve >> this is storing the type info at the "top" of

Re: [GENERAL] PGInstaller Project

2007-07-22 Thread Dave Page
> --- Original Message --- > From: "Mitchell Vincent" <[EMAIL PROTECTED]> > To: pgsql-general@postgresql.org > Sent: 20/07/07, 23:24:03 > Subject: [GENERAL] PGInstaller Project > > This project is of great interest to me as I am looking for a > easier-to-deploy database server and I've a

Re: [GENERAL] Difference between PRIMARY KEY index and UNIQUE-NOT NULL index

2007-07-22 Thread Vincenzo Romano
On Saturday 21 July 2007 08:00:11 Tom Lane wrote: > "Josh Tolley" <[EMAIL PROTECTED]> writes: > > Might it just be that the original UNIQUE + NOT NULL index was > > bloated or otherwise degraded, and reindexing it would have > > resulted in the same performance gain? That's just a guess. > > Yeah.

Re: [GENERAL] encodings

2007-07-22 Thread Zlatko Matić
No, I didn't, I'm just courious. Regards, Zlatko - Original Message - From: "Michael Fuhr" <[EMAIL PROTECTED]> To: "Zlatko Matić" <[EMAIL PROTECTED]> Cc: Sent: Sunday, July 22, 2007 5:41 AM Subject: Re: [GENERAL] encodings On Sat, Jul 21, 2007 at 10:24:38PM +0200, Zlatko Matić wrot