Re: deleting function - Mailing list pgsql-general

From Sam Mason
Subject Re: deleting function
Date
Msg-id 20090424161502.GM12225@frubble.xen.chris-lamb.co.uk
Whole thread Raw
In response to Re: deleting function  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: deleting function
List pgsql-general
On Fri, Apr 24, 2009 at 11:55:48AM -0400, Tom Lane wrote:
> pavunkumar <pavun.bks@gmail.com> writes:
> > create or replace function newd(id integer ) returns void as $$
> > delete from testing where id=$1;
>
> Don't use the same name for a parameter as you use for a table column
> referenced in the function.

I've found it helps to have a standard naming convention here; I only
use identifiers starting with an underscore (i.e. "_") for function
parameters and local variables.  Column names always start with a lower
case alphabetic letter.  Other people will obviously have different ways
of dealing with the ambiguity, but this has worked well for me so far.

--
  Sam  http://samason.me.uk/

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: feature suggestion and return to pgsql-general :-)
Next
From: Erik Jones
Date:
Subject: Re: OperationalError: FATAL: could not open file : Too many open files in system