On 8/28/07, Wei Weng <wweng@xxxxxxxxxxx> wrote: > Is there a more concise way to do this? CREATE OR REPLACE FUNCTION ADDDAYS (TIMESTAMP WITHOUT TIME ZONE, INT) RETURNS TIMESTAMP WITHOUT TIME ZONE AS ' SELECT $1+($2 * ''1 DAY''::INTERVAL) ' LANGUAGE SQL; ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings