From: Jim Nasby <decibel@decibel.org>
To: Steve Martin <smartin@nec.co.nz>
Cc: pgsql-performance@postgresql.org
Subject: Re: selecting data from information_schema.columns
Date: Mon, 2 Oct 2006 21:49:49 -0400
Message-ID: <F3FACD77-6C3D-4FCA-A346-A3DA238C7CFB@decibel.org> (raw)
In-Reply-To: <4521A141.1090505@nec.co.nz>
References: <452078EC.90300@nec.co.nz>
<26736.1159758079@sss.pgh.pa.us>
<20061002191123.GH81937@nasby.net>
<4521A141.1090505@nec.co.nz>
On Oct 2, 2006, at 7:31 PM, Steve Martin wrote:
> Regarding, newsysviews, what is the current state, I have had a
> quick look at the pgFoundry site and the last updates were 9 months
> ago.
Well, the system catalogs don't change terribly often, so it's not
like a lot needs to be done. We'd hoped to get them into core, but
that didn't pan out. Theoretically, we should be making the views
look more like information_schema, but no one's gotten to it yet.
> The most efficient way in the short term I can find to improve
> performance for our application is to create a table from
> information_schema.columns and update it when tables a created or
> deleted, or columns added or removed. E.g.
Well, there's nothing that says you have to use information_schema.
You can always query the catalog tables directly. Even if you don't
want to use newsysviews as-is, the code there should be very helpful
for doing that.
There is no ability to put triggers on DDL, so the best you could do
with your caching table is to just periodically update it.
--
Jim Nasby jim@nasby.net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)
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-performance@postgresql.org
Cc: decibel@decibel.org, smartin@nec.co.nz
Subject: Re: selecting data from information_schema.columns
In-Reply-To: <F3FACD77-6C3D-4FCA-A346-A3DA238C7CFB@decibel.org>
References: <452078EC.90300@nec.co.nz> <26736.1159758079@sss.pgh.pa.us> <20061002191123.GH81937@nasby.net> <4521A141.1090505@nec.co.nz> <F3FACD77-6C3D-4FCA-A346-A3DA238C7CFB@decibel.org>
* 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