Re: [HACKERS] Installing PL/pgSQL by default

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: [HACKERS] Installing PL/pgSQL by default
Дата
Msg-id 87fx7j2jnr.fsf@hi-media-techno.com
обсуждение исходный текст
Ответ на Re: Installing PL/pgSQL by default  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] Installing PL/pgSQL by default  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-general
Tom Lane <tgl@sss.pgh.pa.us> writes:
> It's not impossible that we'll have to tweak pg_dump a bit; it's
> never had to deal with languages that shouldn't be dumped ...

Ah, the best would be to have extensions maybe. Then you could do this
in initdb, filling in template0:
  CREATE EXTENSION plpgsql ...;

Then at createdb time, what would become automatic is:
  INSTALL EXTENSION plpgsql;

And that's it. pg_dump would now about extensions and only issues this
latter statement in its dump.

Bruce, there are some mails in the archive with quite advanced design
proposal that has been discussed and not objected to, and I even
provided a rough sketch of how I wanted to attack the problem.

  http://archives.postgresql.org/pgsql-hackers/2009-06/msg01281.php
  http://archives.postgresql.org/pgsql-hackers/2009-07/msg01425.php
  http://archives.postgresql.org/pgsql-hackers/2009-07/msg01468.php

  The major version dependant SQL code is now much less of a problem
  than before because we have inline DO statements. So you don't need to
  create a function for this anymore.

Real life kept me away from having the time to prepare the code patch,
and I don't think that will change a bit in the 8.5 release cycle,
whatever my hopes were earlier this year.

But having everyone talk about the feature and come to an agreement as
to what it should provide and how was the hard part of it, I think, and
is now about done.

Would you be up for writing the extension facility?

Regards,
--
dim

В списке pgsql-general по дате отправления:

Предыдущее
От: dipti shah
Дата:
Сообщение: Re: Defining permissions for tables, schema etc..
Следующее
От: Andreas
Дата:
Сообщение: How: constants in multi-column-foreign-keys ?