Tom Lane wrote: > > It would be nice, however, if pg_dump produced the exact same sql as used to > > create a table. For instance, if you specify a column constraint, it comes > > back as a column constraint, rather than a trigger, or a table constraint. > > This would especially aid portability of the dumped SQL. > > Right, exactly my point above. We discard too much information that > needs to be retained somewhere... 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?
- [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