|
482 | 482 | Secondary control files follow the same format as the primary control
|
483 | 483 | file. Any parameters set in a secondary control file override the
|
484 | 484 | primary control file when installing or updating to that version of
|
485 |
| - the extension. However, the parameters <varname>directory</>, |
486 |
| - <varname>default_version</>, and <varname>encoding</> cannot be set in |
487 |
| - a secondary control file; in particular, the same encoding must be used |
488 |
| - in all script files associated with the extension. |
| 485 | + the extension. However, the parameters <varname>directory</> and |
| 486 | + <varname>default_version</> cannot be set in a secondary control file. |
489 | 487 | </para>
|
490 | 488 |
|
491 | 489 | <para>
|
@@ -689,6 +687,12 @@ SELECT pg_catalog.pg_extension_config_dump('my_config', 'WHERE NOT standard_entr
|
689 | 687 | to the extension.
|
690 | 688 | </para>
|
691 | 689 |
|
| 690 | + <para> |
| 691 | + If an extension has secondary control files, the control parameters |
| 692 | + that are used for an update script are those associated with the script's |
| 693 | + target (new) version. |
| 694 | + </para> |
| 695 | + |
692 | 696 | <para>
|
693 | 697 | The update mechanism can be used to solve an important special case:
|
694 | 698 | converting a <quote>loose</> collection of objects into an extension.
|
@@ -808,7 +812,7 @@ include $(PGXS)
|
808 | 812 |
|
809 | 813 | This makefile relies on <acronym>PGXS</acronym>, which is described
|
810 | 814 | in <xref linkend="extend-pgxs">. The command <literal>make install</>
|
811 |
| - will then install the control and script files into the correct |
| 815 | + will install the control and script files into the correct |
812 | 816 | directory as reported by <application>pg_config</>.
|
813 | 817 | </para>
|
814 | 818 |
|
|
0 commit comments