Re: [HACKERS] Re: [PATCHES] Fw: Isn't pg_statistic a security hole - Solution Proposal

2001-06-08 Thread Tom Lane
"Joe Conway" <[EMAIL PROTECTED]> writes: > Is the concern that the name-based variants of the function should be called > like: >select has_table_privilege(current_user, pg_class, 'insert'); > or >select has_table_privilege(current_user, "My Quoted Relname", 'insert'); It'd be reall

Re: [HACKERS] Strange behavior on multiple primary key behaviordeleting childr en

2001-06-08 Thread Stephan Szabo
On Fri, 8 Jun 2001, Mike Cianflone wrote: > I'm running into some strange behavior with foreign keys which are a > tuple of primary keys. > > > I have a parent table sector, and a child of that is cell_area table and a > child of that is unit table. > > The cell_area table has a foreign

[HACKERS] Strange behavior on multiple primary key behavior deleting children

2001-06-08 Thread Mike Cianflone
I'm running into some strange behavior with foreign keys which are a tuple of primary keys. I have a parent table sector, and a child of that is cell_area table and a child of that is unit table. The cell_area table has a foreign key parent_sector_index referencing same name in parent t

Re: [HACKERS] ERROR: Memory exhausted in AllocSetAlloc(909324558)

2001-06-08 Thread Tom Lane
[EMAIL PROTECTED] (D'Arcy J.M. Cain) writes: >> heap_formtuple is for constructing a tuple from scratch. It sounds like >> you should be using heap_modifytuple instead. > But I am using SPI_modifytuple(). The rest came from tracing that > function. Hm. Looks like the author of SPI_modifytuple

Re: [HACKERS] Re: AW: Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Stand ards

2001-06-08 Thread Tom Lane
Thomas Lockhart <[EMAIL PROTECTED]> writes: > Clearly it is not the case that "this kluge surprises everyone except > those who already know it exists." How can you argue that, when the topic comes up again every couple of months? regards, tom lane --

Re: [HACKERS] make check fails

2001-06-08 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I have a report from BSD/OS developers that 'make check' fails during > the initdb stage. Any ideas? What's left in the logfiles, particularly the postmaster log? (See src/test/regress/log/) regards, tom lane -

[HACKERS] Various silliness in heap_getnext and related routines

2001-06-08 Thread Tom Lane
Robert Bruccoleri ([EMAIL PROTECTED]) wrote: > It's not clear to me why the spinlock needs be grabbed at the > beginning of RelationGetBufferWithBuffer, I believe you are right: the spinlock doesn't need to be grabbed, because if a valid buffer is passed in, it must already be pinned (since the r

Re: [HACKERS] Is this a bug?

2001-06-08 Thread Tom Lane
"Roberto Abalde" <[EMAIL PROTECTED]> writes: > I've found that some two functions in /src/backend/optimizer/plan/planner.c > have side effects. No kidding ;-). The planner is full of side-effects on data structures. Both of the changes you mention are intentional. regard

Re: [HACKERS] Re: AW: Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Stand ards

2001-06-08 Thread Tom Ivar Helbekkmo
Thomas Lockhart <[EMAIL PROTECTED]> writes: > But since the construct is not allowed (or useless), why would > anyone feel they need to use it? Because it isn't entirely useless, actually. I agree that no programmer in his right mind would write, by hand, a comparison involving NULL, knowing th

[HACKERS] Is this a bug?

2001-06-08 Thread Roberto Abalde
Hi people, I've found that some two functions in /src/backend/optimizer/plan/planner.c have side effects. First, I've added two pprints before and after line 89-90 like this. pprint(parse->rtable); /* primary planning entry point (may recurse for subqueries) */ result_plan = subquery_planner

Re: [HACKERS] ERROR: Memory exhausted in AllocSetAlloc(909324558)

2001-06-08 Thread Tom Lane
[EMAIL PROTECTED] (D'Arcy J.M. Cain) writes: > Am I misunderstanding the call? I thought that the nulls parameter was > to map out which values you were changing to were NULL. heap_formtuple is for constructing a tuple from scratch. It sounds like you should be using heap_modifytuple instead.

Re: [HACKERS] Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Standards

2001-06-08 Thread Tom Lane
Mike Mascari <[EMAIL PROTECTED]> writes: > The best solution would be to have the ODBC translate instances of '= > NULL' into IS NULL before submitting the query to PostgreSQL. Does Access only talk to Postgres via ODBC? (Seems plausible, but I don't know.) What about people copying-and-pastin

[HACKERS] 7.1.2 RPMs

2001-06-08 Thread Robert Forsman
I built my own binary RPMs with rpm -bb and this spec file. I compiled and "installed" postgres using the instructions in comments in the %build section because I haven't bothered to figure out how %build works. This installation is roughly based on the RedHat 6.0 SPEC file and probably has a

Re: [HACKERS] Can the backend return more than one error message per PQexec?

2001-06-08 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > Tom Lane writes: > Some fields may contain line breaks; for example, error messages > definitely do now. >> >> Yes. I believe most of them are set up to indent the continuation >> lines, so there wouldn't be much of a problem interpreting the format

Re: AW: [HACKERS] Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Stand ards

2001-06-08 Thread Tom Lane
"Joe Conway" <[EMAIL PROTECTED]> writes: >> We do not currently have correct implementations of IS TRUE, IS FALSE, >> or IS UNKNOWN (IS TRUE/FALSE are in there but give the wrong result >> for null inputs). This is on my to-do list to fix; not sure if the >> master TODO list mentions it or not.

Re: [HACKERS] Need information about Foreign Key created Triggers

2001-06-08 Thread Stephan Szabo
On Fri, 8 Jun 2001, Jean-Francois Leveque wrote: > > I created a Foreign Key (REFERENCES) constraint on > a table like this (some columns ommited) : > CREATE TABLE tablename ( > id_tablename INTEGER DEFAULT nextval('id_tablename_seq'), > tablename_parent INTEGER CONSTRAINT tablenam

Re: AW: [HACKERS] Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Stand ards

2001-06-08 Thread Tom Lane
Tom Ivar Helbekkmo <[EMAIL PROTECTED]> quotes: > ... This results in > a three-valued logic, which has an UNKNOWN in addition > to TRUE and FALSE. [...] UNKNOWN is a logical value and > not the same as a NULL, which is a data value. SQL92 is not very clear about

Re: AW: [HACKERS] Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Stand ards

2001-06-08 Thread Tom Lane
Zeugswetter Andreas SB <[EMAIL PROTECTED]> writes: > Actually I am not sure whether the column = NULL syntax is even defined > or allowed in SQL92 (e.g. Informix interprets the NULL as column name in > this context and errs out). Strictly speaking, SQL92 would require you to write foo

[HACKERS] Need information about Foreign Key created Triggers

2001-06-08 Thread Jean-Francois Leveque
I created a Foreign Key (REFERENCES) constraint on a table like this (some columns ommited) : CREATE TABLE tablename ( id_tablename INTEGER DEFAULT nextval('id_tablename_seq'), tablename_parent INTEGER CONSTRAINT tablename_parent_fk REFERENCES tablename (id_tablename), CONSTRAINT ta