Christopher Kings-Lynne wrote:
>
> > I like this conversation as not a day goes by where I don't wish I could
> > edit the dump of a database rather than keeping structure entirely
> > seperate -- and actually do so in a useful manner. That said, whats the
> > possibility of maintaining comments if the SQL dumps actually became
> > humanly editable?
>
> >From reading the pg_dump source code, pg_dump creates a set of 'COMMENT ON
> ...' statements that should recreate all the comments associated with an
> oid. So - there shouldn't be a problem, should there?
I was thinking of SQL that looks something like:
/*******************************
* TABLE: example
*
* Used to accomplish stuff
*/
CREATE TABLE example
( example_id serial
/* Must be a ZIP or Postal Code */
, region varchar(6) UNIQUE
NOT NULL
/* Descriptive text */
, description varchar(60) NOT NULL
);
I've always made the assumption that anything in the /* */ was dropped.
- [HACKERS] Table/Column Constraints Christopher Kings-Lynne
- Re: [HACKERS] Table/Column Constraints Tom Lane
- Re: [HACKERS] Table/Column Constraints Hannu Krosing
- Re: [HACKERS] Table/Column Constraint... Ross J. Reedstrom
- Re: [HACKERS] Table/Column Constr... Tom Lane
- RE: [HACKERS] Table/Column C... Christopher Kings-Lynne
- Re: [HACKERS] Table/Colu... Tom Lane
- Re: [HACKERS] Table/... Rod Taylor
- RE: [HACKERS] Table/... Christopher Kings-Lynne
- Re: [HACKERS] Table/... Rod Taylor
- Re: [HACKERS] Table/... Philip Warner
- RE: [HACKERS] Table/... Christopher Kings-Lynne
- RE: [HACKERS] Table/... Philip Warner
- RE: [HACKERS] Table/... Christopher Kings-Lynne
- Re: [HACKERS] Table/... Tom Lane
- RE: [HACKERS] Table/... Christopher Kings-Lynne
- Re: [HACKERS] Table/... Larry Rosenman
- Re: [HACKERS] Table/... Thomas Lockhart
- Re: [HACKERS] Table/... Karl DeBisschop
- Re: [HACKERS] Table/... Don Baccus
