pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Hachmann <public@thesofa.de>
To: Jonathan Bartlett <johnnyb@eskimo.com>
Cc: Pgsql <pgsql-general@postgresql.org>
Subject: Re: Using a Storedprocedure as a View
Date: Tue, 9 Mar 2004 18:57:32 +0100
Message-ID: <NGEEJJBKDBJKFGILNCLPGEKLCDAA.public@thesofa.de> (raw)
In-Reply-To: <Pine.SUN.4.58.0403090926050.9690@eskimo.com>

Hello,
That would say, that I have to add new objects to the program that I am
writing.
For each View a new ADO table and a new Source.
I develope an application with Delphi 7 and want to use the
ADOStoredProcedure the same
way as I do with querys etc.
I want to put as much logic as possible into the Database.

Is it even possible to work with procedures this way? Can a procedure return
the Values that I need, a kind of Table?
thx,
   Alexander

>Why not just create another view, which is a view of the view?  I have
>highly nested views on my databases.
>
>Jon
>
>On Tue, 9 Mar 2004, Alexander Hachmann wrote:

>> Hello,
>> I know that this was discussed many times, but all the answers did not
help
>> me yet.
>> I need to create a Procedure that returns the same data as a view does
>> except, that the the
>> data was filtered by a parameter.
>> I want to execute a procedure with a parameter and get back a 'view'.
>> I only made prcedures giving back simple values. Can they give back data
as
>> Views does.
>> I dont want the procedure to create a view on which i have to query again
>> because the query the Procedure does
>> can go over more stages than just this one. The procedure calls another
>> procedure and handles this as a subselect.
>> Can any one help me?
>> Thx,
>>    Alexander
>>
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 8: explain analyze is your friend
>>




view thread (6+ messages)  latest in thread

Message-ID: <NGEEJJBKDBJKFGILNCLPGEKLCDAA.public@thesofa.de>
Permalink:  ../NGEEJJBKDBJKFGILNCLPGEKLCDAA.public@thesofa.de/
Also on:    postgresql.org/message-id/NGEEJJBKDBJKFGILNCLPGEKLCDAA.public@thesofa.de

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: public@thesofa.de, johnnyb@eskimo.com
  Subject: Re: Using a Storedprocedure as a View
  In-Reply-To: <NGEEJJBKDBJKFGILNCLPGEKLCDAA.public@thesofa.de>
  References: <Pine.SUN.4.58.0403090926050.9690@eskimo.com> <NGEEJJBKDBJKFGILNCLPGEKLCDAA.public@thesofa.de>

* 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