Triggers question

From: ycrux(at)club-internet(dot)fr
To: pgsql-general(at)postgresql(dot)org
Subject: Triggers question
Date: 2006-03-01 13:22:15
Message-ID: mnet1.1141219335.19206.ycrux@club-internet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD><TITLE></TITLE>
<STYLE>
body, table, tr, td, p {margin: 0px 0px 0px 0px}
.bgtabl {BACKGROUND-REPEAT: no-repeat}
</STYLE>
</HEAD>
<BODY bgProperties="fixed" bgcolor="#FFFFFF" background="http://flashimg.club-internet.fr/flash/vide.gif">
Hi All!<br>I want to setup a trigger capable to return more than one record.<br><br>Example (table users contains 10 records):<br><br>CREATE FUNCTION get_users() RETURNS <br>SOME_TYPE AS '<br>BEGIN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (SELECT * FROM users);<br>' LANGUAGE 'plpgsql';<br><br>I can't figure out the correct Postgres type for SOME_TYPE (see above example).<br><br>How can I write such trigger? <br>I mean, what is the correct prototype of this trigger function?<br><br>Thanks in
advance<br>/ycrux<br><br><br><br><br><br><br>

</body></html>

Attachment Content-Type Size
unknown_filename text/html 882 bytes

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2006-03-01 13:49:02 Re: [SQL] regarding grant option
Previous Message Roman Neuhauser 2006-03-01 11:13:42 Re: majordomo unmaintained, postmaster emails ignored?