pgsql: Adjust script to be consistent (thanks Tom for the fix).

Поиск
Список
Период
Сортировка
Искать

pgsql: Adjust script to be consistent (thanks Tom for the fix).

От:
momjian@postgresql.org (Bruce Momjian)
Дата:
Log Message:
-----------
Adjust script to be consistent (thanks Tom for the fix).

Modified Files:
--------------
    pgsql/contrib/uuid-ossp:
        uuid-ossp.sql.in (r1.4 -> r1.5)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/uuid-ossp/uuid-ossp.sql.in?r1=1.4&r2=1.5)

Re: pgsql: Adjust script to be consistent (thanks Tom for the fix).

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
momjian@postgresql.org (Bruce Momjian) writes:
>     pgsql/contrib/uuid-ossp:
>         uuid-ossp.sql.in (r1.4 -> r1.5)
>         (http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/uuid-ossp/uuid-ossp.sql.in?r1=1.4&r2=1.5)

Pray tell, why do you think it's a good idea to not have version labels
in the contrib scripts?

			regards, tom lane

Re: pgsql: Adjust script to be consistent (thanks Tom for the fix).

От:
Bruce Momjian <bruce@momjian.us>
Дата:
Tom Lane wrote:
> momjian@postgresql.org (Bruce Momjian) writes:
> >     pgsql/contrib/uuid-ossp:
> >         uuid-ossp.sql.in (r1.4 -> r1.5)
> >         (http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/uuid-ossp/uuid-ossp.sql.in?r1=1.4&r2=1.5)
> 
> Pray tell, why do you think it's a good idea to not have version labels
> in the contrib scripts?

If we want them, they should be in all of them.  I am worried slightly
that a version label will make the SET search_path harder to find, though.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

Re: pgsql: Adjust script to be consistent (thanks Tom for the fix).

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Bruce Momjian  writes:
> Tom Lane wrote:
>> Pray tell, why do you think it's a good idea to not have version labels
>> in the contrib scripts?

> If we want them, they should be in all of them.

+1 for putting the label in all of them --- these files end up "loose"
in user installations, so having a clear version identity on them seems
like a Real Good Idea.

> I am worried slightly
> that a version label will make the SET search_path harder to find, though.

The documentation already says "first command", and there is already
one comment in front of that.  I don't think having two comments in
front of it will deter anyone smart enough to be installing contrib
modules into nonstandard schemas.

			regards, tom lane

Re: pgsql: Adjust script to be consistent (thanks Tom for the fix).

От:
Bruce Momjian <bruce@momjian.us>
Дата:
Tom Lane wrote:
> Bruce Momjian  writes:
> > Tom Lane wrote:
> >> Pray tell, why do you think it's a good idea to not have version labels
> >> in the contrib scripts?
> 
> > If we want them, they should be in all of them.
> 
> +1 for putting the label in all of them --- these files end up "loose"
> in user installations, so having a clear version identity on them seems
> like a Real Good Idea.
> 
> > I am worried slightly
> > that a version label will make the SET search_path harder to find, though.
> 
> The documentation already says "first command", and there is already
> one comment in front of that.  I don't think having two comments in
> front of it will deter anyone smart enough to be installing contrib
> modules into nonstandard schemas.

Agreed.  Done.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://postgres.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +
FAQ