[GENERAL] how perl get trigger info?

1999-08-13 Thread amy cheng
hi, this may also related to interface list. but also trigger, so, I post it to general list. I want to know if it is possible to let perl program (using dbi) get info (esp. error info) from the triggers (in PL/pgSQL). thanks!!! Kai _

Re: [GENERAL] Trigger documentation? Need more examples.. pleeeze.. ;-)

1999-08-20 Thread amy cheng
It is possible. But I do not know how :-) I Know it because PL/pgSQL can do it, and spi/C can do more than PL/pgSQL. in the doc, seems a lot stuff on spi (server programming interface ?). also, since the syntax of PL/pgSQL is not difficult at all, it can serve as the psudo-code for most purpose,

Re: [GENERAL] Hardware optimising

1999-08-26 Thread amy cheng
if in doubt, memory first -- although it depends your app and hits. processor/disk: check your cpu use. amy >From: Michael <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: [GENERAL] Hardware optimising >Date: Thu, 26 Aug 1999 11:19:39 +0100 > >Hi > >I am about to

Re: [GENERAL] Database Best Practices ???

1999-08-30 Thread amy cheng
Oliver, or/and, Gary, and all other experts, I studied this design: 1) inheritance and trigger: since "person" and "person-address" relationship already has triggers, why "organization" and "individual" still need triggers with "person-address"? 2) "person-address" is the relationship between "

Re: [GENERAL] Referential integrity

1999-08-31 Thread amy cheng
no direct support yet. but you can use triggers. you can find the trigggers in c in the source's contri/refin.c , also, you can find them in the source's test directory (file name like triggers.sql(?)). this question is asked n-times (n>=20 (?)). So, in this listing, also the novice listing, sear

Re: [GENERAL] Database Best Practices ???

1999-08-31 Thread amy cheng
"Oliver Elphick" wrote: >I don't think that triggers can be inherited automatically. That is why I >did it that way. The implementation of inheritance still needs a lot of >work in PostgreSQL. thanks for the info. >The refint trigger is to make sure that the address record exists before >the pe

[GENERAL] do delete/insert instead of update if name changes

1999-08-31 Thread amy cheng
hi, all experts there, I'm studying the example in postgresql-6.5.1/src/pl/plpgsql/test. I do not understand why we need "do delete/insert instead of update if name changes". Is it ONLY for the test, or, there is some reason for doing that in practical use? I cut/paste part of it below. Thanks

[GENERAL] change null to ""

1999-08-31 Thread amy cheng
hi, all experts there, it's me again :-) I'm studying the example in postgresql-6.5.1/src/pl/plpgsql/test. I have another question: why do we need to "Set backlink to empty string if NULL value given"? is it JUST a test, or, some reasons to do that in general? Thanks!!! amy #

Re: [GENERAL] re-post

1999-09-01 Thread amy cheng
>I can answer least 50% on all of your question only after reading the >"programmer's guide", >one night,( and was also doin' a Postgres+Apache+PHP installation in >parallel). >So did you rtfm? OK, I understand you are smart! BTW, what is "rtfm" ;-) > > the difference between PL/pgSQL and tcl (no

Re: [GENERAL] shutdown gracefully & single user mode?

1999-09-14 Thread amy cheng
Jeff, Bryan, Teodor: thank you all so much!!! one related/furthur question: >0. LOCK TABLE IN EXCLUSIVE MODE this is what I'm concerned. Now, the "shutdown" a table gracefully is solved. How about the whole postmaster (in some other situation), how can I shut it down GRACEFULLY (i.e., I know tha

[GENERAL] shutdown gracefully & single user mode?

1999-09-14 Thread amy cheng
hi, all experts there, greetings! Just minutes ago, my boss found out one of the attributes in a table is too short (varchar 64 for url), we need to make it wider to 85 A.S.A.P. Seems that alter table can not do it. So, I used pg_dump, (how to do it gracefully?) immediately drop the table, shutd

Re: [GENERAL] two phase commit?

1999-09-14 Thread amy cheng
>We still don't know if Postgresql can do it, do we? no, we do not know ;-) anybody there please? amy __ Get Your Private, Free Email at http://www.hotmail.com

[GENERAL] data mart indexing support?

1999-09-23 Thread amy cheng
greetings, all experts & newbies there!!! my questions are all related with data warehouse indexing: 1) does PG support bitmap index? 2) can PG use multiple indices with in ONE query? so that we do not need to make multiple attribute indices (composite indices). 3) can PG actually do Cartesia

Re: [GENERAL] data mart indexing support?

1999-09-23 Thread amy cheng
be a hacker to do this. BTW, SQL server 7 can do them, why PG can not :-) amy >From: "amy cheng" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [GENERAL] data mart indexing support? >Date: Thu, 23 Sep 1999 06:58:01 PDT > >greetings, all experts & newbi

Re: [GENERAL] ERROR: nodeRead: Bad type 0

1999-09-27 Thread amy cheng
the problem is that I can not even dump! also, our system admin just upgrade the OS (linux5.x -> 6.x). thanks amy >From: Aaron Holtz <[EMAIL PROTECTED]> >To: amy cheng <[EMAIL PROTECTED]> >Subject: Re: [GENERAL] ERROR: nodeRead: Bad type 0 >Date: Mon, 27 Sep 1999 1

[GENERAL] alpha and true64 port

1999-10-01 Thread amy cheng
hi, this is kind of emergent! we are in the process of decision making. Is there an true64 on alpha port? thanks in advance!! amy __ Get Your Private, Free Email at http://www.hotmail.com

Re: [GENERAL] stored procedure revisited

1999-10-10 Thread amy cheng
forgive my ignorance. why "multi-resultset, multi-level transaction" SP is so important? no work-around? I rememeber there were some discussion on multiple-return-value-function in the past. My impression is that they are not that crucial and usually can find rather simple work-arounds. >Fr

[GENERAL] two serial fields within one table?

1999-10-12 Thread amy cheng
hi, there, I use two serial type fields within one table, seems psql does not like it: it override the first one with the second one! Why? (seems to me quite often if I do not want to normize it too much) or something else? here is the table: create table tmpschedule ( schedid serial,

Re: [GENERAL] stored procedure revisited

1999-10-13 Thread amy cheng
o more research/testing on this. >From: Howie <[EMAIL PROTECTED]> >Reply-To: Howie <[EMAIL PROTECTED]> >To: amy cheng <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: [GENERAL] stored procedure revisited >Date: Wed, 13 Oct 1999 17:29:29 + (GMT) >

Re: [GENERAL] stored procedure revisited

1999-10-13 Thread amy cheng
IL PROTECTED] >Subject: Re: [GENERAL] stored procedure revisited >Date: Wed, 13 Oct 1999 15:52:28 -0700 > >amy cheng wrote: > > > > C is good, and in a sense, for OSS we should encourage more C >"scripting" > > and "hacking" than script scripting. (per

Re: [GENERAL] cidr and inet

1999-10-21 Thread amy cheng
try: insert into ip values ('10.20.30.40'); >From: soundar rajan <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: [GENERAL] cidr and inet >Date: Thu, 21 Oct 1999 12:15:03 -0700 (PDT) > >Hi all, > >I created two tables with CIDR and inet data values >separately. I was not able to insert value

Re: [GENERAL] current_timestamp and default now()

1999-10-26 Thread amy cheng
>create table test ( > proposetime datetime not null default 'now()', >) > > >At 10:07 PM 10/25/99, Lincoln Yeoh wrote: >>At 01:05 PM 25-10-1999 PDT, amy cheng wrote: >> >hi, there, >> > >> >I'm using: >> > >> >c

[GENERAL] Re: [NOVICE] next steps

1999-10-29 Thread amy cheng
I'm considering to persuade my boss in making the scheduler project I'm doing as a GPL, just like the accounting one. any ideas? >From: Thomas Good <[EMAIL PROTECTED]> >To: Carsten Huettl <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED], [EMAIL PROTECTED] >Subject: Re: [NOVICE] next steps >Date: Fri,

[GENERAL] backend disconnect w/ cast in join

1999-11-01 Thread amy cheng
hi, there, I'm using select from 2 tables (join). the key fields are not the same type (char and varchar). result: psql got disconnected. I tried several times, then, I make the type the same. then, it works. now, although not urgent, I'm still curious: is it a bug or, I did not install PG right

Re: [GENERAL] Auto Ordering

1999-11-01 Thread amy cheng
then, why use int, isn't char better? (almost no need for batch). >From: Herouth Maoz <[EMAIL PROTECTED]> >To: "Shawn T. Walker" <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED] >Subject: Re: [GENERAL] Auto Ordering >Date: Mon, 1 Nov 1999 17:57:13 +0200 > >At 20:41 +0200 on 27/10/1999, Stuart Rison w

Re: [GENERAL] About Date field

1999-11-09 Thread amy cheng
sure. PG's datetime and timespan are the best, even better than Okle! there are "now", "current_date" etc. see the doc and archive of this list (search datetime). Just a remind: unless you really want "date" (nobody need to save disk for that reason!), use datetime/timespan. >From: Edouard D

Re: [GENERAL] Alter table possibility

1999-11-09 Thread amy cheng
and there are some work-arounds in the archive of this mailing list. basically use a temporary table. >From: Alain TESIO <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: Edouard DESSIOUX <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Subject: Re: [GENERAL] Alter table possibility >Date: Tue, 9 Nov