IIRC, the COMMENT command was added in 7.0. But it's just a user
interface to the pg_description table, which has existed for awhile.
pg_description is the thing to look at if you want to manipulate
comments directly. Basically it maps OIDs to comments...
regards, tom lane