pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Riccardo G. Facchini <abief_ag_-postgresql@yahoo.com>
To: Philip Warner <pjw@rhyme.com.au>
To: pgsql-sql@postgresql.org
Subject: Re: from PG_DUMP to CVS
Date: Thu, 26 Aug 2004 04:48:37 -0700 (PDT)
Message-ID: <20040826114837.49995.qmail@web13904.mail.yahoo.com> (raw)
In-Reply-To: <6.1.1.1.0.20040826211635.05525768@203.8.195.10>


--- Philip Warner <__> wrote:

> At 08:43 PM 26/08/2004, Riccardo G. Facchini wrote:
> >If you know of something even similar to what I'm looking for, let
> me
> >know.
> 
> My thinking is to modify pg_dump to add a new output format, but I'd
> like 
> to get some more feedback from others first, including yourself. Does
> what 
> I specified before satisfy all your needs?
> 
> 
> ----------------------------------------------------------------
> Philip Warner                    |     __---_____
> Albatross Consulting Pty. Ltd.   |----/       -  \
> (A.B.N. 75 008 659 498)          |          /(@)   ______---_
> Tel: (+61) 0500 83 82 81         |                 _________  \
> Fax: (+61) 03 5330 3172          |                 ___________ |
> Http://www.rhyme.com.au          |                /           \|
>                                   |    --________--
> PGP key available upon request,  |  /
> and from pgp.mit.edu:11371       |/ 
> 
> 

yes, I think a specific format for pg_dump could be interesting.
From my point of view, I would like to get a directory structure like
this one:

<database name>
 /schemas
  /<schema name>
   /<schema name>.sql
   /tables
    /<table name>.sql
   /views
    /<view name>.sql
   /functions
    /<function name>.sql
   /domains
    /<domain name>.sql
   /types
    /<type name>.sql
   /aggregates
    /<aggregate name>.sql
   /operators
    /<operator name>.sql
   /priming
    /<table name>.sql
   /acls
    /schemas
     /<schema name>
      /<schema name>.sql
      /tables
       /<table name>.sql
      /views
       /<view name>.sql
      /functions
       /<function name>.sql
      /domains
       /<domain name>.sql
      /types
       /<type name>.sql
      /aggregates
       /<aggregate name>.sql
      /operators
       /<operator name>.sql
 /languages
  /<language name>.sql
  
either following the pgadmin3 style or, better still, the ems
postgresql manager output style (I believe is superior, even if not
OS).

My feeling is that a lot of the code for an output of this kind is
already in the pgadmi3 code, so it could be a matter of codebashing.

I wouldn't separate the functions from the triggers, but beware of the
function overloading, but that's a small issue compared to the task. 

best regards,



=====
Riccardo G. Facchini



view thread (13+ messages)  latest in thread

Message-ID: <20040826114837.49995.qmail@web13904.mail.yahoo.com>
Permalink:  ../20040826114837.49995.qmail@web13904.mail.yahoo.com/
Also on:    postgresql.org/message-id/20040826114837.49995.qmail@web13904.mail.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: abief_ag_-postgresql@yahoo.com, pjw@rhyme.com.au
  Subject: Re: from PG_DUMP to CVS
  In-Reply-To: <20040826114837.49995.qmail@web13904.mail.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox