Re: [GENERAL] If table A value IS NULL then table B

2004-01-31 Thread Ezra Epstein
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Marco Lazzeri > Sent: Saturday, January 24, 2004 7:19 AM > Cc: [EMAIL PROTECTED] > Subject: Re: [GENERAL] If table A value IS NULL then table B > > > I think this post belongs on the SQL list, not the gener

Re: [GENERAL] Postgress and MYSQL

2004-01-18 Thread ezra epstein
""Bob Powell"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > To whom it may concern: > > I find the recent articles in various trade publications a little > disturbing due to the lack of PostgrSQL mention. I continue to see > articles about how IBM may be considering MYSQL for dev

Re: [GENERAL] sequence incrementing twice

2004-01-18 Thread ezra epstein
r that you need to be sure the sequence isn't being invoked somewhere else? E.g., a trigger or a default value or ??? (Or, of course, another session...) == Ezra Epstein ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Re: [GENERAL] website doc search is extremely SLOW

2004-01-04 Thread ezra epstein
l.org Searched pages from postgresql.org for SECURITY INVOKER. Results 1 - 10 of about 141. Search took 0.23 seconds. Ahhh, that's better. Or use site:www.postgresql.org to avoid the archive listings, etc. == Ezra Epstein ""D. Dante Lorenso"" <[EMAIL PROTECT

Re: [GENERAL] SELECT INTO broken (?) in PL/pgSQL when using a set returning function in FROM clause (BGUG?)

2004-01-04 Thread ezra epstein
Ahhh. Yes. A nasty typo. I did a global search for %1, %2, %3, etc. and turned up several elsewhere. Ouch. Thank you for your close reading. == Ezra Epstein "Tom Lane" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "ezra epstein" <[EMAIL PR

Re: [GENERAL] SELECT INTO broken (?) in PL/pgSQL when using a set returning function in FROM clause (BGUG?)

2003-12-24 Thread ezra epstein
Up too late. This works fine. At least it works for some simpler test functions under the just-downloaded 7.4.1 release. -- Ezra Epstein "ezra epstein" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm been banging my head over this for a little while

[GENERAL] Parser does not like %ROWTYPE in the RETURNS clause of a function declaration (BUG?)

2003-12-24 Thread ezra epstein
Aother head banger for me. Below is a complete example of the code Using Postgres 7.4, the function "test" gets this: psql:temp3.sql:10: ERROR: syntax error at or near "%" at character 135 the function "test2" gets this: psql:temp3.sql:10: ERROR: syntax error at or near "ROWTYPE" at char

Re: [GENERAL] Tables Referencing themselves As Foreign Keys

2003-12-24 Thread Ezra Epstein
y detected...''; END IF; There's also a short-cut way to do this since you use Serial for the CatIDs. Just do a CHECK (CatParent < CatID) -- of course it makes an assumption about the CatIDs really come in serially... == Ezra Epstein ""Tony (Unihost)"&

[GENERAL] SELECT INTO broken (?) in PL/pgSQL when using a set returning function in FROM clause (BGUG?)

2003-12-24 Thread ezra epstein
I'm been banging my head over this for a little while now. Here's a simple function to return a record: CREATE OR REPLACE FUNCTION create_item_record_for_override(INTEGER, VARCHAR ) RETURNS RECORD AS ' DECLARE recRECORD; BEGIN /* Normally we would not have a separ

Re: [GENERAL] Triggers for FK on Views - can they be made deferrable?

2003-12-24 Thread Ezra Epstein
f everything.) EE "Jan Wieck" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > There is a way to create them as CONSTRAINT triggers. It's totally > non-standard, not guaranteed to exist in future releases, yadda, yadda. > But it get's you where you want