pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Vince Vielhaber <vev@michvhf.com>
Cc: PostgreSQL-documentation <pgsql-docs@postgresql.org>
Subject: Re: PostgreSQL TO-DO List (fwd)
Date: Thu, 7 Mar 2002 14:02:10 -0500 (EST)
Message-ID: <200203071902.g27J2A003059@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.BSF.4.40.0203071022510.96720-100000@paprika.michvhf.com>

Vince Vielhaber wrote:
> On Sun, 3 Mar 2002, Bruce Momjian wrote:
> 
> > Can someone comment on this?  I don't understand it.
> >
> >
> 
> The example being referred to is here:
> 
> http://www.us.postgresql.org/users-lounge/docs/7.2/postgres/plpgsql-examples.html
> 
> Scroll to the bottom.  Unfortunately I can't go back and read his
> comment with the terminal I'm using.

The current query in this section is:
	
	CREATE FUNCTION c_overpaid (EMP, INTEGER) RETURNS BOOLEAN AS '
	    DECLARE
	        emprec ALIAS FOR $1;
	        sallim ALIAS FOR $2;
	    BEGIN
	        IF emprec.salary ISNULL THEN
	            RETURN ''f'';
	        END IF;
	        RETURN emprec.salary > sallim;
	    END;
	' LANGUAGE 'plpgsql';

Looks OK to me.  Seems it has been updated since the report.  I can't
find a mention of fun1 or fun2 anywhere in the docs anymore.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (4+ messages)

Message-ID: <200203071902.g27J2A003059@candle.pha.pa.us>
Permalink:  ../200203071902.g27J2A003059@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200203071902.g27J2A003059@candle.pha.pa.us

 · 

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-docs@postgresql.org
  Cc: pgman@candle.pha.pa.us, vev@michvhf.com
  Subject: Re: PostgreSQL TO-DO List (fwd)
  In-Reply-To: <200203071902.g27J2A003059@candle.pha.pa.us>

* 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