Re: views, queries, and locks

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: views, queries, and locks
Date: 2012-04-04 16:22:06
Message-ID: jlhsfb$pn3$1@dough.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jon Nelson wrote on 04.04.2012 15:50:
> I need to have something table-like from the client's perspective for
> a bunch of reasons.
> For now, assume that I want to keep using the view and that I'd like
> to find better ways to address my concerns.

What about a set-returning function that builds the query dynamically and wrapping that into a view?

That way the view would never change and client would still have the perspective of a view/table

Your function could pick up the changes automatically e.g. by looking at information_schema.tables

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message leaf_yxj 2012-04-04 17:24:01 Re: Questions of the privileges to use the pg_cancel_backend and pg_terminate_backend function. Thanks.
Previous Message Aaron 2012-04-04 16:07:34 Re: Questions of the privileges to use the pg_cancel_backend and pg_terminate_backend function. Thanks.