[SQL] how do I find which ...

2001-03-20 Thread datactrl
I write some functions inPL/pgSQL. If I drop a function B , which is called by function A, and create function B again, then function A won't work unless I drop function A and re-create again. How about if there are lots functions call to function B, is there any way to search system table to find

Re: [SQL] Maybe a Bug, maybe bad SQL

2001-03-20 Thread Tom Lane
Daryl Herzmann <[EMAIL PROTECTED]> writes: > akrherz=# create table test (day date); > CREATE > akrherz=# insert into test values('2000_04_02'); > INSERT 13166281 1 > akrherz=# insert into test values('2000_04_01'); > INSERT 13166282 1 > akrherz=# insert into test values('2000_04_03'); > INSERT 13

Re: [SQL] Maybe a Bug, maybe bad SQL

2001-03-20 Thread Grant
version 7.0.3 binary_data=# select day, date_part('day', day) AS day from test; day | day +- 02/04/2000 | 2 01/04/2000 | 1 03/04/2000 | 3 (3 rows) binary_data=# Why does everyone reply to the person as well as CC to the list when the person is on the list anyho

[SQL] help pgsql 7.1beta & delphi

2001-03-20 Thread guard
pgsql 7.1 beta.. NOT USE Delphi "Ttable" component ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing l

[SQL] grant under sql92

2001-03-20 Thread Vladislav Breus
I have postgresql-7.0.3 I'm trying to do following : test=> create table test (col1 int,col2 int); test=> grant select on test (col1) to user1; ERROR: parser: parse error at or near "(" I'm trying to use GRANT with SQL92 extentions,(set permissions on the individual column) but it dosn't work

Re: [SQL] Maybe a Bug, maybe bad SQL

2001-03-20 Thread Bruce Momjian
With 7.1beta, I get: day | day +- 2000-04-02 | 2 2000-04-01 | 1 2000-04-03 | 3 (3 rows) > HI, > I am running postgres version 7.0 and I do this... > > akrherz=# create table test (day date); > CREATE

[SQL] Maybe a Bug, maybe bad SQL

2001-03-20 Thread Daryl Herzmann
HI, I am running postgres version 7.0 and I do this... akrherz=# create table test (day date); CREATE akrherz=# insert into test values('2000_04_02'); INSERT 13166281 1 akrherz=# insert into test values('2000_04_01'); INSERT 13166282 1 akrherz=# insert into test values('2000_04_03'); INSE

[SQL] pltcl - returning row(s)

2001-03-20 Thread Jae Hwang
Hi, all, Is there any way for a tcl function to return rows (after selct within the function) ? Sorry if this has been answered previously. Best Regards, Jae ---(end of broadcast)--- TIP 6: Have you searched our list archives? http://www.postgr

Re: [HACKERS] triggered data change violation

2001-03-20 Thread Peter Eisentraut
Tom Lane writes: > Cedar Cox <[EMAIL PROTECTED]> writes: > > Added note: The trigger is a BEFORE trigger. > > AFAIK the "triggered data change" message comes out of the AFTER trigger > code. You sure you don't have any AFTER triggers on the table? Perhaps > ones added implicitly by a foreign-k

Re: [SQL] Re: [HACKERS] triggered data change violation

2001-03-20 Thread Bruce Momjian
> A "triggered data change violation" happens everytime you change twice > within a transaction a value (column) that is part of a foreign key > constraint (don't recall exactly which part). > > This error shouldn't really happen, but I recall there were some > implementation and definition probl

Re: [SQL] Re: Use of the LIMIT clause ?

2001-03-20 Thread Bruce Momjian
> Bruce Momjian <[EMAIL PROTECTED]> writes: > > Is this a TODO item? Seems we should match MySQL, seeing as we took the > > feature syntax from them. > > Question is, will more people be inconvenienced if we change it than if > we leave it alone? Seems like someone gets screwed either way ...

Re: [SQL] Re: Use of the LIMIT clause ?

2001-03-20 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > Is this a TODO item? Seems we should match MySQL, seeing as we took the > feature syntax from them. Question is, will more people be inconvenienced if we change it than if we leave it alone? Seems like someone gets screwed either way ...

Re: [SQL] Re: Use of the LIMIT clause ?

2001-03-20 Thread Bruce Momjian
Is this a TODO item? Seems we should match MySQL, seeing as we took the feature syntax from them. [ Charset ISO-8859-1 unsupported, converting... ] > On Mon, Mar 12, 2001 at 09:21:58PM -0500, Tom Lane wrote: > > Spy <[EMAIL PROTECTED]> writes: > > > Tom Lane a ?crit : > > >> Is that actually ho

[SQL] triggered data change violation

2001-03-20 Thread Cedar Cox
Added note: The trigger is a BEFORE trigger. -- Forwarded message -- To: [EMAIL PROTECTED] Date: Tue, 20 Mar 2001 20:43:59 +0200 (IST) Subject: triggered data change violation ERROR: triggered data change violation on relation "tblstsc2options" What is this? It doesn't happ

Re: [SQL] Categories and subcategories : more details

2001-03-20 Thread Josh Berkus
Rachel, See below: > Examples : > > table CATEG : > ida categ > 1X > 2Y > 3Z > > table SUBCATEG : > idb subcateg ida > 1 x1 1 > 2 x2 1 > 3 x3 1 > 4 x4 1 > 5

[SQL] Categories and subcategories : more details

2001-03-20 Thread Rachel Coin
> I have two tables : the first for categories and the second for > subcategories.I want to get a result like Yahoo! For each category , > the sql > query must return maximum 3 subcategories. I can't use "limit" in a > subquery > because I use Postgresql 7.0. Examples : table CATEG : ida ca

Re: [SQL] Categories and subcategories

2001-03-20 Thread Josh Berkus
Rachel, > I have two tables : the first for categories and the second for > subcategories.I want to get a result like Yahoo! For each category , > the sql > query must return maximum 3 subcategories. I can't use "limit" in a > subquery > because I use Postgresql 7.0. I can think of several ways

[SQL] postmaster not starting on my MS WIN NT

2001-03-20 Thread juerg . rietmann
Hi everybody I found the needed install package for postgres 7.0.3 for win32. Installation worked. When I try to start the postmaster in the cygwin bash shell with postmaster -D /data I get the error as documented in the attached gif. It says something about shared memory problem and semaphore

[SQL] Re: Select very slow

2001-03-20 Thread Mark Kirkwood
> >That 'count(*)' is going to be slow. >Try counting a column that's indexed (p.doc might work?) That is not the case, you can convince yourself with explain - you get the same plan(s) : e.g : ( table dim0 with indexed column d0key ) ... explain select count(*) from dim0 where d0ke

[SQL] Categories and subcategories

2001-03-20 Thread Rachel Coin
Hi, I have two tables : the first for categories and the second for subcategories.I want to get a result like Yahoo! For each category , the sql query must return maximum 3 subcategories. I can't use "limit" in a subquery because I use Postgresql 7.0. Any help? Regards, Rachel -