File: update.rst

package info (click to toggle)
pgpointcloud 1.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,892 kB
  • sloc: sql: 40,767; ansic: 11,045; xml: 935; makefile: 297; cpp: 282; perl: 248; python: 178; sh: 92
file content (48 lines) | stat: -rw-r--r-- 1,367 bytes parent folder | download | duplicates (3)
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
.. _update:

******************************************************************************
Update
******************************************************************************

pgPointcloud extension
------------------------------------------------------------------------------

Once a new version of pgPointcloud installed, you may want to update your
databases where the extension is already in use. The first thing to compare is
the version currently used with versions actually available on your system:

.. code-block:: sql

   SELECT pc_version();
   --> 1.1.1

   SELECT version FROM pg_available_extension_versions WHERE name ='pointcloud';
   --> 1.1.1
   --> 1.2.1


Then you can update to the latest version:

.. code-block:: sql

   ALTER EXTENSION pointcloud;
   ALTER EXTENSION pointcloud_postgis;

or target a specific version:

.. code-block:: sql

   ALTER EXTENSION pointcloud UPDATE TO '1.2.1';

   SELECT pc_version();
   --> 1.2.1


.. warning::

   The GHT compression has been removed in the 1.2.0 version. Unfortunately,
   you have to remove the compression on your tables before updating the
   extension from 1.1.x to a higher version. Some information are available in
   the `Schema and compression`_ tutorial.

.. _`Schema and compression`: /https://pgpointcloud.github.io/pointcloud/tutorials/compression.html#schema-and-compression