Re: default parameters for built-in functions (was Re: [HACKERS] Documentation Update: Document pg_start_backup checkpoint behavior)

2009-04-06 Thread Pavel Stehule
2009/4/7 Tom Lane : > I wrote: >> Bruce suggested what seemed like an excellent idea, which is to make >> this self-documenting using the new default-arguments feature --- >> it'll look something like this in \df: > >>                              List of functions >>  Schema | Name | Result data t

Re: default parameters for built-in functions (was Re: [HACKERS] Documentation Update: Document pg_start_backup checkpoint behavior)

2009-04-06 Thread Tom Lane
Alvaro Herrera writes: > Tom Lane wrote: >> The only alternative that comes to mind is >> to have initdb issue an additional SQL command to establish the default >> after the bootstrap phase; that is, something like >> >> CREATE OR REPLACE FUNCTION >> pg_start_backup(label text, fast boolean DEFA

Re: default parameters for built-in functions (was Re: [HACKERS] Documentation Update: Document pg_start_backup checkpoint behavior)

2009-04-06 Thread Alvaro Herrera
Tom Lane wrote: > The only alternative that comes to mind is > to have initdb issue an additional SQL command to establish the default > after the bootstrap phase; that is, something like > > CREATE OR REPLACE FUNCTION > pg_start_backup(label text, fast boolean DEFAULT false) > RETURNS text L

default parameters for built-in functions (was Re: [HACKERS] Documentation Update: Document pg_start_backup checkpoint behavior)

2009-04-06 Thread Tom Lane
I wrote: > Bruce suggested what seemed like an excellent idea, which is to make > this self-documenting using the new default-arguments feature --- > it'll look something like this in \df: > List of functions > Schema | Name | Result data type | Argument data