Re: [SQL] The PostgreSQL

2004-05-26 Thread sad
Dear developers, many tricks were discussed here, and many feature requests generated. Every discussed problem ALREADY have solution in the current version of the SQL. Most of the problems are forced by incorrect design of a database ! I ask you: do not burden the PostgreSQL with features !!! P

Re: [SQL] Memory usage on subselect

2004-05-26 Thread Gaetano Mendola
Dan Field wrote: On 24 May 2004, at 14:37, Tom Lane wrote: Dan Field <[EMAIL PROTECTED]> writes: I have a similar problem with just one of my queries (although it isn't a sub select): You really ought to vacuum and/or analyze occasionally. The EXPLAIN results show that the planner hasn't got any

Re: [SQL] Memory usage on subselect

2004-05-26 Thread Dan Field
On 24 May 2004, at 14:37, Tom Lane wrote: Dan Field <[EMAIL PROTECTED]> writes: I have a similar problem with just one of my queries (although it isn't a sub select): You really ought to vacuum and/or analyze occasionally. The EXPLAIN results show that the planner hasn't got any non-default stati

Re: [SQL] trigger function building

2004-05-26 Thread Manuel Sugawara
hook <[EMAIL PROTECTED]> writes: > What's the proper way to include the suport files for building 'C' trigger > functions in to the normal PostgreSQL install? > > > I.E. / > "make install "does not include internal/postgres_fe.h, executor/spi.h > nor commands/trigger.h in to /usr/local/pgsql

Re: [SQL] Multitable uniqueness ?

2004-05-26 Thread Jean-Luc Lachance
Do you really need MANY-TO-MANY between customers and projects? I can see customers owning many projects, but do you really have projects belonging to many customers? If not, fold cust_proj into projects. Otherwise, UNIQUE (cp_id, stall_no) on stalls should be enough. Andreas wrote: Hi folks, Is

Re: [SQL] Multitable uniqueness ?

2004-05-26 Thread Jan Wieck
Bruno Wolff III wrote: On Wed, May 26, 2004 at 05:13:14 +0200, Andreas <[EMAIL PROTECTED]> wrote: Is there a way to have something like this : UNIQUE (table_1.id, table_2.xxx) Postgres doesn't support database constraints at this time which is what you would need to do this simply. You can enfo

Re: [SQL] Multitable uniqueness ?

2004-05-26 Thread Bruno Wolff III
On Wed, May 26, 2004 at 05:13:14 +0200, Andreas <[EMAIL PROTECTED]> wrote: > > Is there a way to have something like this : UNIQUE (table_1.id, > table_2.xxx) Postgres doesn't support database constraints at this time which is what you would need to do this simply. You can enforce this const

[SQL] trigger function building

2004-05-26 Thread hook
What's the proper way to include the suport files for building 'C' trigger functions in to the normal PostgreSQL install? I.E. / "make install "does not include internal/postgres_fe.h, executor/spi.h nor commands/trigger.h in to /usr/local/pgsql/include. ---(end of br