Re: [GENERAL] Regarding niladic functions (another form)

2005-04-04 Thread Pavel Stehule
Hello, It's not really about subject - sorry. I tryed implement support of XML. For it I need functions which know names of params. example: create table foo(a integer); select xmlnode(a) from foo; -> 10 select xmlnode(a as b) from foo; -> 10 ... I have particular solution, but may

Re: [GENERAL] Regarding niladic functions

2005-04-04 Thread Tom Lane
Neil Conway <[EMAIL PROTECTED]> writes: > If you mean a function that doesn't take any arguments and can be > invoked without an empty set of parentheses (like current_timestamp), > there isn't a way to define such a function via SQL. You could probably > hack the SQL parser to add support for s

Re: [GENERAL] Regarding niladic functions

2005-04-04 Thread Neil Conway
Chandra Sekhar Surapaneni wrote: Can we write our own niladic functions in 8.0.0? I want to write a niladic function similar to current_timestamp, but I did not find any information in the documentation. If you mean a function without any arguments, it is trivial: CREATE FUNCTION foo() RETURNS .

[GENERAL] Regarding niladic functions

2005-04-04 Thread Chandra Sekhar Surapaneni
Hi All, Can we write our own niladic functions in 8.0.0? I want to write a niladic function similar to current_timestamp, but I did not find any information in the documentation. Thank you for your time Regards chandu ---(end of broadcast)--- TIP