pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Hall <rhall@micropat.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: how to call a function with row-type arg
Date: Fri, 12 Sep 2003 09:35:57 -0400
Message-ID: <3F61CBBD.77B7EC68@micropat.com> (raw)
References: <200309120931.13760.sad@bankir.ru>

DECLARE
    I INTEGER;
BEGIN
    SELECT *
      INTO I
      FROM foo( <tablename> )

That part is easy, but I don't understand what you are using as a function
parameter.

Rick

sad wrote:

> hi
>  how to call a function with a row_type arg ??
>  that is the question
>
> CREATE FUNCTION foo(tablename) returns int .....
>
> SELECT foo ( ??????? );
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings

view thread (3+ messages)  latest in thread

Message-ID: <3F61CBBD.77B7EC68@micropat.com>
Permalink:  ../3F61CBBD.77B7EC68@micropat.com/
Also on:    postgresql.org/message-id/3F61CBBD.77B7EC68@micropat.com

 · 

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: rhall@micropat.com
  Subject: Re: how to call a function with row-type arg
  In-Reply-To: <3F61CBBD.77B7EC68@micropat.com>

* 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