mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Make /contrib install/uninstall script consistent:
remove transactions use create or replace function make formatting consistent set search patch on first line Add documentation on modifying *.sql to set the search patch, and mention that major upgrades should still run the installation scripts. Some of these issues were spotted by Tom today.
This commit is contained in:
@ -16,11 +16,17 @@
|
||||
these cases, you will need to run <literal>make</literal> and <literal>make
|
||||
install</literal> in <literal>contrib/module</literal>. After you have
|
||||
installed the files you need to register the new entities in the database
|
||||
system by running the commands in the supplied .sql file. For example,
|
||||
system by running the commands in the supplied <literal>.sql</> file.
|
||||
For example,
|
||||
|
||||
<programlisting>
|
||||
$ psql -d dbname -f module.sql
|
||||
</programlisting>
|
||||
|
||||
You can modify the first command in the <literal>.sql</> file to control
|
||||
the schema where the module is created. During major upgrades, even
|
||||
though the restored database might already have the desired module
|
||||
functions, run the installation script again to add any new functions.
|
||||
</para>
|
||||
|
||||
&adminpack;
|
||||
|
Reference in New Issue
Block a user