File: reference_guc.xml

package info (click to toggle)
postgis 3.5.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 70,052 kB
  • sloc: ansic: 162,204; sql: 93,950; xml: 53,121; cpp: 12,646; perl: 5,658; sh: 5,369; makefile: 3,434; python: 1,205; yacc: 447; lex: 151; pascal: 58
file content (303 lines) | stat: -rw-r--r-- 14,125 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!-- Converted by db4-upgrade version 1.1 -->
<section xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:id="PostGIS_GUC">
    <title>Grand Unified Custom Variables (GUCs)</title><info>
    <abstract>
    <para>This section lists custom PostGIS Grand Unified Custom Variables (GUC).
These can be set globally, by database, by session or by transaction. Best set at global or database level.</para>
<para>For more examples of usage refer to <link xlink:href="https://www.postgresql.org/docs/current/sql-set.html">SQL SET</link> 
    and <link xlink:href="https://www.postgresql.org/docs/current/sql-altersystem.html">SQL ALTER SYSTEM</link></para>
    </abstract>
    </info>


    <refentry xml:id="postgis_backend">
      <refnamediv>
        <refname>postgis.backend</refname>
        <refpurpose>The backend to service a function where GEOS and SFCGAL overlap. Options: geos or sfcgal. Defaults to geos.</refpurpose>
      </refnamediv>

      <refsection>
        <title>Description</title>
        <para>This GUC is only relevant if you compiled PostGIS with sfcgal support.  By default <varname>geos</varname> backend is used for functions where both GEOS and SFCGAL have the same named function.  This variable allows you to override and make sfcgal the backend to service the request.</para>
        <para role="availability" conformance="2.1.0">Availability: 2.1.0</para>
      </refsection>

      <refsection>
    <title>Examples</title>
    <para>Sets backend just for life of connection</para>
    <programlisting>set postgis.backend = sfcgal;</programlisting>

    <para>Sets backend for new connections to database</para>
    <programlisting>ALTER DATABASE mygisdb SET postgis.backend = sfcgal;</programlisting>
      </refsection>
      <refsection>
              <title>See Also</title>
              <para><xref linkend="reference_sfcgal"/></para>
            </refsection>
  </refentry>

  <refentry xml:id="postgis_gdal_datapath">
            <refnamediv>
                <refname>postgis.gdal_datapath</refname>
                <refpurpose>
                    A configuration option to assign the value of GDAL's GDAL_DATA option. If not set, the environmentally set GDAL_DATA variable is used.
                </refpurpose>
            </refnamediv>

            <refsection>
                <title>Description</title>
                <para>
                    A PostgreSQL GUC variable for setting the value of GDAL's GDAL_DATA option. The <varname>postgis.gdal_datapath</varname> value should be the complete physical path to GDAL's data files.
                </para>
                <para>
                    This configuration option is of most use for Windows platforms where GDAL's data files path is not hard-coded. This option should also be set when GDAL's data files are not located in GDAL's expected path.
                </para>

                <note>
                    <para>
                        This option can be set in PostgreSQL's configuration file postgresql.conf. It can also be set by connection or transaction.
                    </para>
                </note>
                <para role="availability" conformance="2.2.0">Availability: 2.2.0</para>

                <note>
                    <para>
                        Additional information about GDAL_DATA is available at GDAL's <link xlink:href="http://trac.osgeo.org/gdal/wiki/ConfigOptions">Configuration Options</link>.
                    </para>
                </note>

            </refsection>

            <refsection>
                <title>Examples</title>
                <para>Set and reset <varname>postgis.gdal_datapath</varname></para>

                <programlisting>
SET postgis.gdal_datapath TO '/usr/local/share/gdal.hidden';
SET postgis.gdal_datapath TO default;
                </programlisting>

                <para>Setting on windows for a particular database</para>
                <programlisting>ALTER DATABASE gisdb
SET postgis.gdal_datapath = 'C:/Program Files/PostgreSQL/9.3/gdal-data';</programlisting>
            </refsection>

            <refsection>
                <title>See Also</title>
                <para>
                    <xref linkend="RT_PostGIS_GDAL_Version"/>, <xref linkend="RT_ST_Transform"/>
                </para>
            </refsection>
    </refentry>

  <refentry xml:id="postgis_gdal_enabled_drivers">
            <refnamediv>
                <refname>postgis.gdal_enabled_drivers</refname>
                <refpurpose>
                    A configuration option to set the enabled GDAL drivers in the PostGIS environment. Affects the GDAL configuration variable GDAL_SKIP.
                </refpurpose>
            </refnamediv>

            <refsection>
                <title>Description</title>
                <para>
                    A configuration option to set the enabled GDAL drivers in the PostGIS environment. Affects the GDAL configuration variable GDAL_SKIP. This option can be set in PostgreSQL's configuration file: postgresql.conf. It can also be set by connection or transaction.
                </para>

                <para>
                    The initial value of <varname>postgis.gdal_enabled_drivers</varname> may also be set by passing the environment variable <varname>POSTGIS_GDAL_ENABLED_DRIVERS</varname> with the list of enabled drivers to the process starting PostgreSQL.
                </para>

                <para>
                    Enabled GDAL specified drivers can be specified by the driver's short-name or code. Driver short-names or codes can be found at <link xlink:href="http://www.gdal.org/formats_list.html">GDAL Raster Formats</link>. Multiple drivers can be specified by putting a space between each driver.
                </para>

                <note>
                    <para>
                        There are three special codes available for <varname>postgis.gdal_enabled_drivers</varname>. The codes are case-sensitive.

                        <itemizedlist>
                            <listitem>
                                <para><varname>DISABLE_ALL</varname> disables all GDAL drivers. If present, <varname>DISABLE_ALL</varname> overrides all other values in <varname>postgis.gdal_enabled_drivers</varname>.</para>
                        </listitem>
                            <listitem>
                                <para><varname>ENABLE_ALL</varname> enables all GDAL drivers.</para>
                        </listitem>
                            <listitem>
                                <para><varname>VSICURL</varname> enables GDAL's <varname>/vsicurl/</varname> virtual file system.</para>
                        </listitem>
                        </itemizedlist>
                    </para>
                    <para>
                        When <varname>postgis.gdal_enabled_drivers</varname> is set to DISABLE_ALL, attempts to use out-db rasters, ST_FromGDALRaster(), ST_AsGDALRaster(), ST_AsTIFF(), ST_AsJPEG() and ST_AsPNG() will result in error messages.
                    </para>
                </note>

                <note>
                    <para>
                        In the standard PostGIS installation, <varname>postgis.gdal_enabled_drivers</varname> is set to DISABLE_ALL.
                    </para>
                </note>

                <note>
                    <para>
                        Additional information about GDAL_SKIP is available at GDAL's <link xlink:href="http://trac.osgeo.org/gdal/wiki/ConfigOptions">Configuration Options</link>.
                    </para>
                </note>

                <para role="availability" conformance="2.2.0">Availability: 2.2.0</para>

            </refsection>

            <refsection>
                <title>Examples</title>
                <para>To set and reset <varname>postgis.gdal_enabled_drivers</varname> for current session</para>

                <programlisting>
SET postgis.gdal_enabled_drivers = 'ENABLE_ALL';
SET postgis.gdal_enabled_drivers = default;
                </programlisting>

                <para>Set for all new connections to a specific database to specific drivers</para>

                <programlisting>ALTER DATABASE mygisdb SET postgis.gdal_enabled_drivers TO 'GTiff PNG JPEG';</programlisting>

                <para>Setting for whole database cluster to enable all drivers. Requires super user access.
                    Also note that database, session, and user settings override this.</para>

                <programlisting>
 --writes to postgres.auto.conf
ALTER SYSTEM SET postgis.gdal_enabled_drivers TO 'ENABLE_ALL';
 --Reloads postgres conf
SELECT pg_reload_conf();
                </programlisting>
            </refsection>

            <refsection>
                <title>See Also</title>
                <para>
                    <xref linkend="RT_ST_FromGDALRaster"/>,
                    <xref linkend="RT_ST_AsGDALRaster"/>,
                    <xref linkend="RT_ST_AsTIFF"/>,
                    <xref linkend="RT_ST_AsPNG"/>,
                    <xref linkend="RT_ST_AsJPEG"/>,
                    <xref linkend="postgis_enable_outdb_rasters"/>
                </para>
            </refsection>
    </refentry>

  <refentry xml:id="postgis_enable_outdb_rasters">
            <refnamediv>
                <refname>postgis.enable_outdb_rasters</refname>
                <refpurpose>
                    A boolean configuration option to enable access to out-db raster bands.
                </refpurpose>
            </refnamediv>

            <refsection>
                <title>Description</title>
                <para>
                    A boolean configuration option to enable access to out-db raster bands. This option can be set in PostgreSQL's configuration file: postgresql.conf. It can also be set by connection or transaction.
                </para>

                <para>
                    The initial value of <varname>postgis.enable_outdb_rasters</varname> may also be set by passing the environment variable <varname>POSTGIS_ENABLE_OUTDB_RASTERS</varname> with a non-zero value to the process starting PostgreSQL.
                </para>

                <note>
                    <para>
                        Even if <varname>postgis.enable_outdb_rasters</varname> is True, the GUC <varname>postgis.gdal_enabled_drivers</varname> determines the accessible raster formats.
                    </para>
                </note>

                <note>
                    <para>
                        In the standard PostGIS installation, <varname>postgis.enable_outdb_rasters</varname> is set to False.
                    </para>
                </note>

                <para role="availability" conformance="2.2.0">Availability: 2.2.0</para>

            </refsection>

            <refsection>
                <title>Examples</title>
                <para>Set and reset <varname>postgis.enable_outdb_rasters</varname> for current session</para>

                <programlisting>
SET postgis.enable_outdb_rasters TO True;
SET postgis.enable_outdb_rasters = default;
SET postgis.enable_outdb_rasters = True;
SET postgis.enable_outdb_rasters = False;
                </programlisting>

                <para>Set for all new connections to a specific database</para>

                <programlisting>
ALTER DATABASE gisdb SET postgis.enable_outdb_rasters = true;
                </programlisting>

                <para>Setting for whole database cluster. Requires super user access.
                    Also note that database, session, and user settings override this.</para>
                <programlisting>
 --writes to postgres.auto.conf
ALTER SYSTEM SET postgis.enable_outdb_rasters = true;
 --Reloads postgres conf
SELECT pg_reload_conf();
                </programlisting>
            </refsection>

            <refsection>
                <title>See Also</title>
                <para>
                    <xref linkend="postgis_gdal_enabled_drivers"/>
                    <xref linkend="postgis_gdal_vsi_options"/>
                </para>
            </refsection>
    </refentry>


  <refentry xml:id="postgis_gdal_vsi_options">
            <refnamediv>
                <refname>postgis.gdal_vsi_options</refname>
                <refpurpose>
                    A string configuration to set options used when working with an out-db raster.
                </refpurpose>
            </refnamediv>

            <refsection>
                <title>Description</title>
                <para>
                    A string configuration to set options used when working with an out-db raster. <link xlink:href="http://trac.osgeo.org/gdal/wiki/ConfigOptions">Configuration options</link> control things like how much space GDAL allocates to local data cache, whether to read overviews, and what access keys to use for remote out-db data sources.
                </para>

                <para role="availability" conformance="3.2.0">Availability: 3.2.0</para>

            </refsection>

            <refsection>
                <title>Examples</title>
                <para>Set <varname>postgis.gdal_vsi_options</varname> for current session:</para>

                <programlisting>
SET postgis.gdal_vsi_options = 'AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxx AWS_SECRET_ACCESS_KEY=yyyyyyyyyyyyyyyyyyyyyyyyyy';
                </programlisting>

                <para>Set <varname>postgis.gdal_vsi_options</varname> just for the <emphasis>current transaction</emphasis> using the <varname>LOCAL</varname> keyword:</para>
                <programlisting>
SET LOCAL postgis.gdal_vsi_options = 'AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxx AWS_SECRET_ACCESS_KEY=yyyyyyyyyyyyyyyyyyyyyyyyyy';
                </programlisting>
            </refsection>

            <refsection>
                <title>See Also</title>
                <para>
                    <xref linkend="postgis_enable_outdb_rasters"/>
                    <xref linkend="postgis_gdal_enabled_drivers"/>
                </para>
            </refsection>
    </refentry>



</section>