Re: Which version will this run on?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mads Lie Jensen <mads(at)gartneriet(dot)dk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Which version will this run on?
Date: 2010-01-31 21:11:46
Message-ID: 16400.1264972306@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mads Lie Jensen <mads(at)gartneriet(dot)dk> writes:
> SELECT pg_catalog.pg_get_constraintdef(r.oid, true) AS condef
> FROM pg_catalog.pg_constraint r,
> pg_catalog.pg_class c
> WHERE c.oid=r.conrelid
> AND r.contype = 'f'
> AND c.relname = 'table_name'

> which gives me the foreign keys of a given table in the database.
> It is working perfectly on my 8.4.2-version of pstgresql.

> But what other versions of postgresql will it run on?

A quick test says that it works back to 7.4, which is the oldest
version that is supported at all anymore. I don't think you need
to worry too much.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message zhong ming wu 2010-01-31 21:35:20 Re: back out configure options
Previous Message Sebastien Boisvert 2010-01-31 20:24:36 Determine if postmaster can accept new connections