pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel CAUNE <d.caune@free.fr>
To: pgsql-sql@postgresql.org
Subject: Function with default value?
Date: Sun, 29 Jan 2006 15:15:21 -0500
Message-ID: <0ITV004G911MRG90@VL-MH-MR002.ip.videotron.ca> (raw)

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

view thread (3+ messages)  latest in thread

Message-ID: <0ITV004G911MRG90@VL-MH-MR002.ip.videotron.ca>
Permalink:  ../0ITV004G911MRG90@VL-MH-MR002.ip.videotron.ca/
Also on:    postgresql.org/message-id/0ITV004G911MRG90@VL-MH-MR002.ip.videotron.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: d.caune@free.fr
  Subject: Re: Function with default value?
  In-Reply-To: <0ITV004G911MRG90@VL-MH-MR002.ip.videotron.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox