Re: Schema version management - Mailing list pgsql-hackers

From Joel Jacobson
Subject Re: Schema version management
Date
Msg-id CAASwCXd9ct_k6NA-SC-7qo6+NA=H7aA8nwUJX9jPKTfoQqrhbw@mail.gmail.com
Whole thread Raw
In response to Re: Schema version management  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Schema version management
List pgsql-hackers
On Thu, Jul 12, 2012 at 4:01 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
FWIW, I think you could save a level of naming if you were willing to
put the type first, since the type would imply whether the object
lives in a schema or not:

        [type]/[name].sql
        [type]/[schema]/[name].sql


Could work. But I think it's more relevant and useful to keep all objects
in a schema in its own directory.

That way it's easier to get an overview of what's in a schema,
simply by looking at the file structure of the schema directory.

I think its more common you want to "show all objects within schema X"
than "show all schemas of type X".

PS.

I was thinking -- the guys back in the 70s must have spent a lot of time
thinking about the UNIX directory structure -- before they decided upon it.

I did some googling and found found this explanation which was quite
amusing to say the least :-)


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Schema version management
Next
From: Andrew Dunstan
Date:
Subject: Re: Schema version management