Re: [ADMIN] DELETE FROM pg_description WHERE ...

2011-04-24 Thread Tom Lane
Simon Riggs writes: > On Fri, Apr 22, 2011 at 5:26 PM, Erwin Brandstetter > wrote: >> DELETE FROM pg_description WHERE description = 'My very special >> totally useless comment.'; > Why would you *not* use the COMMENT command for that? If what he wants is to drop comments containing a particul

Re: [ADMIN] DELETE FROM pg_description WHERE ...

2011-04-24 Thread Simon Riggs
On Fri, Apr 22, 2011 at 5:26 PM, Erwin Brandstetter wrote: > Hi! > > It is generally not advisable to write to system catalogs directly ... > > However, I have a database with dozens of schemas and hundreds of > tables. There is a bunch of useless comments on columns I want to get > rid of, scatte

Re: [ADMIN] DELETE FROM pg_description WHERE ...

2011-04-23 Thread Erwin Brandstetter
On 23.04.2011 05:21, Tom Lane wrote: Erwin Brandstetter writes: However, I have a database with dozens of schemas and hundreds of tables. There is a bunch of useless comments on columns I want to get rid of, scattered all across the db. The fastest& easiest way would be: DELETE FROM pg_descrip

Re: [ADMIN] DELETE FROM pg_description WHERE ...

2011-04-22 Thread Tom Lane
Erwin Brandstetter writes: > However, I have a database with dozens of schemas and hundreds of > tables. There is a bunch of useless comments on columns I want to get > rid of, scattered all across the db. The fastest & easiest way would > be: > DELETE FROM pg_description WHERE description = 'My

[ADMIN] DELETE FROM pg_description WHERE ...

2011-04-22 Thread Erwin Brandstetter
Hi! It is generally not advisable to write to system catalogs directly ... However, I have a database with dozens of schemas and hundreds of tables. There is a bunch of useless comments on columns I want to get rid of, scattered all across the db. The fastest & easiest way would be: DELETE FROM