Function with default value?

From: Daniel CAUNE <d(dot)caune(at)free(dot)fr>
To: pgsql-sql(at)postgresql(dot)org
Subject: Function with default value?
Date: 2006-01-29 20:15:21
Message-ID: 0ITV004G911MRG90@VL-MH-MR002.ip.videotron.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

Is it possible to define a function with some default values?

CREATE OR REPLACE FUNCTION foo(i IN int, j IN int DEFAULT := 1)

Anyway, I didn’t find such a feature described in the PostgreSQL 8.1 documentation, but sometimes, that doesn’t mean that the feature doesn’t exist! :-)

Thanks,

Daniel

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message ody quraviharto 2006-01-30 02:01:37 variable scooping
Previous Message Tom Lane 2006-01-29 15:47:57 Re: Function with default value?