Thread: Can I add a column in catalog table as a superuser
Hi, everyone I know this is very dangerous, but I do in my private environment, is there a method to add a column in catalog table,like pg_authid?
ZongtianHou <zongtianhou@icloud.com> writes: > I know this is very dangerous, but I do in my private environment, is there a method to add a column in catalog table,like pg_authid? Not without patching the source code ... regards, tom lane
Thank you for the quick reply, I changed the source code, and installed again. But I still can not have the additional columnI added after restart, unless initializing the database. But I don’t want to initialize it in product environment whichwill drop all the data, it there any other method to do it, like some SQL query? > On 24 Oct 2018, at 5:43 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote: > > ZongtianHou <zongtianhou@icloud.com> writes: >> I know this is very dangerous, but I do in my private environment, is there a method to add a column in catalog table,like pg_authid? > > Not without patching the source code ... > > regards, tom lane
On 24/10/2018 11:54, ZongtianHou wrote: > Thank you for the quick reply, I changed the source code, and installed again. But I still can not have the additionalcolumn I added after restart, unless initializing the database. But I don’t want to initialize it in product environmentwhich will drop all the data, it there any other method to do it, like some SQL query? no -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services