Lists: | pgsql-general |
---|
From: | "xiapw" <xiapw(at)lreis(dot)ac(dot)cn> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | how to add a new column to system table |
Date: | 2005-12-29 09:07:41 |
Message-ID: | 000e01c60c57$52c5f170$4503a8c0@sting |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
I wanted to add a new column to system table(pg_database),but failed at last. Who know how to do this and can you tell me ?
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | xiapw <xiapw(at)lreis(dot)ac(dot)cn> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: how to add a new column to system table |
Date: | 2005-12-29 16:43:10 |
Message-ID: | 200512291643.jBTGhAn04391@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
xiapw wrote:
> I wanted to add a new column to system table(pg_database),but failed
> at last. Who know how to do this and can you tell me ?
It is pretty complicated. I would pick an existing column in the table
and find all references to that in the backend, then adjust other values
to match. Actually adding a column to a system table is quite complex
and you might be better off creating a new table that refernces
pg_database and linking to it.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: how to add a new column to system table |
Date: | 2005-12-29 18:35:38 |
Message-ID: | dp1a7n$2gd$1@news.hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-general |
""xiapw"" <xiapw(at)lreis(dot)ac(dot)cn> wrote in message
news:000e01c60c57$52c5f170$4503a8c0(at)sting(dot)(dot)(dot)
>I wanted to add a new column to system table(pg_database),but failed at
>last. Who know how to do this and can you tell me ?
A recent change to pg_database (adding a new column) happened on
--
Sun Jul 31 17:19:21 2005 UTC (4 months, 4 weeks ago) by tgl
Log Message:
-----------
Add per-user and per-database connection limit options.
This patch also includes preliminary update of pg_dumpall for roles.
Petr Jelinek, with review by Bruce Momjian and Tom Lane.
--
Try to find out related changes on pgsql.committers.
Regards,
Qingqing