Re: [HACKERS] plpgsql lacks generic identifier for record in triggers...

2004-11-25 Thread Weiping
db=# CREATE FUNCTION schma.tbl_ins_upd() RETURNS TRIGGER AS 'BEGIN EXECUTE public.mc_init(); EXECUTE public.mc_delete(''mc_key''); RETURN NEW; END;' LANGUAGE 'plpgsql'; db=# CREATE FUNCTION schma.tbl_del() RETURNS TRIGGER AS 'BEGIN EXECUTE public.mc_init();

Re: [HACKERS] configure error in HP-UX 11.00

2003-09-02 Thread Weiping He
Tom Lane wrote: Weiping He <[EMAIL PROTECTED]> writes: I've put the config.log on: http://www.pgsqldb.org/config.log configure:10847: cc -Ae -c +O2 -D_XOPEN_SOURCE_EXTENDED conftest.c >&5 (Bundled) cc: warning 480: The -A option is available only with the C/ANSI C prod

Re: [HACKERS] configure error in HP-UX 11.00

2003-09-02 Thread Weiping He
Tom Lane wrote: Weiping He <[EMAIL PROTECTED]> writes: Check the config.log, it said that the configure script can't find the argument types fo 'accept()'. Could you show us the relevant section of config.log, instead of giving a summary with no details? I'

[HACKERS] configure error in HP-UX 11.00

2003-09-02 Thread Weiping He
When trying to build the CVS source on a HP-UX 11.00 box: HP-UX hpux B.11.00 A 9000/800 We got the configure error: checking types of arguments for accept()... configure: error: could not determine argument types Check the config.log, it said that the configure script can't find the argument t

[HACKERS] cvs version compile error on AIX 4.3.3 using xlc (long)

2003-07-08 Thread Weiping He
Hi, just try to compile newly updated 7.4-devl version on a AIX 4.4.3 box, (just checkouted about 24 hours) but seems got problem: 8<--- make[3]: Entering directory `/home/

Re: [HACKERS] cvs version compile error

2003-07-04 Thread Weiping He
Tom Lane wrote: I think Bruce already fixed this. How old is your CVS pull? regards, tom lane ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings upgraded this morning, around 2003-07-04 09:29:00 CST or 2003

[HACKERS] cvs version compile error

2003-07-03 Thread Weiping He
Hi, I'm trying to compile pgsql-7.4devl on Solaris8, but got the error below: 8<- numeric.c: In function `PGTYPESnumeric_cmp': numeric.c:1308: `INT_MAX' undeclared (first use in this fu

Re: [HACKERS] a problem with index and user define type

2003-06-26 Thread Weiping He
Tom Lane wrote: Weiping He <[EMAIL PROTECTED]> writes: because the data type (UUID) is a struct, and the uuid_eq() function accept two pointer to the value of struct uuid, if make it IMMUTABLE, postgresql would think it should not try to run the function, but return the cached value i

Re: [HACKERS] a problem with index and user define type

2003-06-24 Thread Weiping He
Tom Lane wrote: Weiping He <[EMAIL PROTECTED]> writes: we found the problem: We used IMMUTABLE modifier in our CREATE FUNCTION definition, though it's correct for our function to return same value if input the same *data*, but our data are passed by reference, not by value, so, so

Re: [HACKERS] a problem with index and user define type

2003-06-23 Thread Weiping He
he problem. So, it seems to make it clear in docs would be a good help to function writers, would commit a documentation patch later if necessary. Thank you! Regards Laser Tom Lane wrote: Weiping He <[EMAIL PROTECTED]> writes: the situation trun worse: now the explain shows the

Re: [HACKERS] a problem with index and user define type

2003-06-22 Thread Weiping He
Tom Lane wrote: "Wang Mike" <[EMAIL PROTECTED]> writes: but this query: select * from test_uuid where id = 'df2b10aa-a31d-11d7-9867-0050babb6029'::uuid dosn't use index QUERY PLAN --- Seq Scan on te

[HACKERS] plpgsql's variable name can't be the same with table column?

2001-08-16 Thread He Weiping
Hi, all I've found a problem in pl/pgsql: the variable declared can't be the same name of table's column name, here is a example: ---8< drop table userdata; create table userdata ( userid text, txnid text, passwd text

Re: [HACKERS] 7.1 docs

2001-03-27 Thread He Weiping(Laser Henry)
> > en_GB would be a "British English" translation. I don't think this is > what you wanted to do. > cn_GB, sorry. :-D Regards Laser Henry ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "

Re: [HACKERS] 7.1 docs

2001-03-24 Thread He Weiping(Laser Henry)
Peter Eisentraut wrote: > Tatsuo Ishii writes: > > > I have a plan to translate 7.1 docs into Japanases > > Btw... > > One thing I am thinking about doing for the 7.2 cycle is set up the > doc/src/ directory in a way to keep translations in tree. It would > probably look something like: > > doc/

Re: [HACKERS] Re: [INTERFACES] Re: [GENERAL] Chinese patch for Pgaccess

2001-02-22 Thread He Weiping(Laser Henry)
> > > appropriate. There are several encodings for Chinese including > > GB(EUC-CN), Big5, EUC-TW. At least we should be able to distinguish > > them. What about "chinese(GB)" or whatever? > > Renamed to chinese-gb. > I think chinese-gb is ok, thanks! Regards Laser

[HACKERS] Chinese patch for Pgaccess

2001-02-22 Thread He Weiping(Laser Henry)
Hi all: The attachement is the Chinese (GB) patch for PgAccess, don't know if it's correct to post here. It's simple to do the translation, And I've test in 7.0.2 & current CVS, seems pretty good. If anyone want this little thing, I'll very happy. use it is very simple, just gunzip it and copy

[GENERAL] is it a bug?

2000-11-28 Thread He weiping
I'm using cvs-current, and testing those build-in function according to the docs. but it seems the "lpad", "rpad" don't work, when I type: select lpad('laser', 4, 'a'); in psql, the result is still 'laser', the same with 'rpad', Is it a bug or I'm mis-understaning the lpad and/or rpad func

[HACKERS] ~{;X84~}: [HACKERS] beta testing version

2000-11-28 Thread He weiping
-Original Message- ~{7"<~HK~}: xuyifeng <[EMAIL PROTECTED]> ~{JU<~HK~}: [EMAIL PROTECTED] <[EMAIL PROTECTED]> ~{HUFZ~}: 2000~{Dj~}11~{TB~}28~{HU~} 16:22 ~{VwLb~}: [HACKERS] beta testing version >Hi, > > how long is PG7.1 already in beta testing? can it be released before Christmas day