Re: [GENERAL] functions behaviours

2006-04-04 Thread A. Kretschmer
am 04.04.2006, um 15:02:19 +0200 mailte [EMAIL PROTECTED] folgendes: > Hi All! > > I'm wondering if there is an elegant way to add simple behaviours to stored > Postgres functions. > > 1. First, what I want to get here is a function which orders their > results columns in ASC at one time and in

[GENERAL] functions behaviours

2006-04-04 Thread ycrux
Hi All! I'm wondering if there is an elegant way to add simple behaviours to stored Postgres functions. 1. First, what I want to get here is a function which orders their results columns in ASC at one time and in DESC next time it is called. Something like that: CREATE FUNCTION sort_swap(inte