Re: PL/PGSQL rowtype return pr

From: rwickert(at)contextworld(dot)com
To: pavel(dot)stehule(at)gmail(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PL/PGSQL rowtype return pr
Date: 2007-06-12 15:48:02
Message-ID: 4EF2E9A7ED.01DC0088TFSFVRIY@contextworld.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


That worked. Thank you very much.

-----Original Message-----
From: pavel(dot)stehule(at)gmail(dot)com
Sent: 12 June 2007 16:41
To: Robert Wickert
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] PL/PGSQL rowtype return pr

-------------------------------------------------------------------------- --
>
> i can't do
>
> declare
> vals default_vals%rowtype
> begin
> select get_defaults_vals() into vals;
>
> x1 := default_vals.a1;

try
SELECT INTO vals * FROM get_defaults_vals()

Pavel

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq
*****************************************************
Robert Wickert
Senior Software Developer
CONTEXT
Tel:+44 (0)20 8394 7739
Fax:+44 (0)20 8394 7701
Email Address: rwickert(at)contextworld(dot)com
Web Site: http://www.contextworld.com
*****************************************************
This message and the information contained therein is intended for the use
of the person(s) ("the intended recipient(s)" to whom it is addressed. It
may contain information that is privileged and confidential within the
meaning of applicable law. If you are not the intended recipient, please
contact the sender as soon possible. The views expressed in this
communication may not necessarily be the views held by Context or its
subsidiaries. The contents of an attachment to this e-mail may contain
viruses that could damage your own computer system. While every reasonable
precaution has been taken to minimise this risk, Context and its
subsidiaries cannot accept liability for any damage which you sustain as a
result of software viruses. You should carry out your own virus checks
before opening the attachment. Please notice that Context monitors e-mails
sent or received. Further communication will signify your consent to this.

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-06-12 15:51:32 Re: Date style handling changes between 7.4.12 and 8.2.4
Previous Message Vincenzo Romano 2007-06-12 15:40:47 Re: INSERT ... RETURNING in v8.2