Artifact
d6bd01bb8d3df16dabc1bc782fac422c83f0cc73:
Wiki page
[PostgreSQL] by
sandro
2018-08-05 09:28:59.
0000: 44 20 32 30 31 38 2d 30 38 2d 30 35 54 30 39 3a D 2018-08-05T09:
0010: 32 38 3a 35 39 2e 31 32 32 0a 4c 20 50 6f 73 74 28:59.122.L Post
0020: 67 72 65 53 51 4c 0a 50 20 36 33 64 38 34 66 32 greSQL.P 63d84f2
0030: 66 61 65 65 32 32 39 31 32 31 30 34 64 64 38 35 faee22912104dd85
0040: 66 39 31 37 62 66 64 39 62 64 62 37 32 65 33 63 f917bfd9bdb72e3c
0050: 65 0a 55 20 73 61 6e 64 72 6f 0a 57 20 31 33 32 e.U sandro.W 132
0060: 38 39 0a 42 61 63 6b 20 74 6f 20 3c 61 20 68 72 89.Back to <a hr
0070: 65 66 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e ef="https://www.
0080: 67 61 69 61 2d 67 69 73 2e 69 74 2f 66 6f 73 73 gaia-gis.it/foss
0090: 69 6c 2f 73 70 61 74 69 61 6c 69 74 65 5f 67 75 il/spatialite_gu
00a0: 69 2f 77 69 6b 69 3f 6e 61 6d 65 3d 73 70 61 74 i/wiki?name=spat
00b0: 69 61 6c 69 74 65 2d 67 75 69 22 3e 6d 61 69 6e ialite-gui">main
00c0: 20 57 69 6b 69 20 70 61 67 65 3c 2f 61 3e 3c 68 Wiki page</a><h
00d0: 72 3e 3c 62 72 3e 0d 0a 3c 68 31 3e 54 68 65 20 r><br>..<h1>The
00e0: 47 55 49 20 61 73 20 61 20 50 6f 73 74 67 72 65 GUI as a Postgre
00f0: 53 51 4c 20 63 6c 69 65 6e 74 3c 2f 68 31 3e 0d SQL client</h1>.
0100: 0a 53 74 61 72 74 69 6e 67 20 66 72 6f 6d 20 76 .Starting from v
0110: 65 72 73 69 6f 6e 20 3c 62 3e 32 2e 31 2e 30 3c ersion <b>2.1.0<
0120: 2f 62 3e 20 74 68 65 20 47 55 49 20 68 61 73 20 /b> the GUI has
0130: 74 68 65 20 63 61 70 61 62 69 6c 69 74 79 20 74 the capability t
0140: 6f 20 73 75 70 70 6f 72 74 20 63 6f 6e 6e 65 63 o support connec
0150: 74 69 6f 6e 73 20 74 6f 20 65 78 74 65 72 6e 61 tions to externa
0160: 6c 20 3c 62 3e 50 6f 73 74 67 72 65 53 51 4c 20 l <b>PostgreSQL
0170: 2f 20 50 6f 73 74 47 49 53 3c 2f 62 3e 20 64 61 / PostGIS</b> da
0180: 74 61 62 61 73 65 73 2e 3c 62 72 3e 0d 0a 54 68 tabases.<br>..Th
0190: 69 73 20 66 75 6e 63 74 69 6f 6e 61 6c 69 74 79 is functionality
01a0: 20 69 73 20 6d 61 69 6e 6c 79 20 62 61 73 65 64 is mainly based
01b0: 20 6f 6e 20 3c 61 20 68 72 65 66 3d 22 68 74 74 on <a href="htt
01c0: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 ps://www.gaia-gi
01d0: 73 2e 69 74 2f 66 6f 73 73 69 6c 2f 76 69 72 74 s.it/fossil/virt
01e0: 75 61 6c 70 67 2f 77 69 6b 69 3f 6e 61 6d 65 3d ualpg/wiki?name=
01f0: 74 75 74 6f 72 69 61 6c 22 3e 6c 69 62 76 69 72 tutorial">libvir
0200: 74 75 61 6c 70 67 3c 2f 61 3e 2c 20 74 68 61 74 tualpg</a>, that
0210: 20 69 73 20 6e 6f 77 20 61 20 72 65 71 75 69 72 is now a requir
0220: 65 64 20 64 65 70 65 6e 64 65 6e 63 79 20 66 6f ed dependency fo
0230: 72 20 74 68 65 20 47 55 49 20 74 6f 6f 6c 2e 0d r the GUI tool..
0240: 0a 54 68 65 20 70 72 65 73 65 6e 74 20 74 75 74 .The present tut
0250: 6f 72 69 61 6c 20 69 73 20 69 6e 74 65 6e 64 65 orial is intende
0260: 64 20 74 6f 20 71 75 69 63 6b 6c 79 20 65 78 70 d to quickly exp
0270: 6c 61 69 6e 20 68 6f 77 20 74 68 65 20 50 6f 73 lain how the Pos
0280: 74 67 72 65 53 51 4c 20 73 75 70 70 6f 72 74 20 tgreSQL support
0290: 69 73 20 69 6d 70 6c 65 6d 65 6e 74 65 64 20 62 is implemented b
02a0: 79 20 3c 62 3e 73 70 61 74 69 61 6c 69 74 65 5f y <b>spatialite_
02b0: 67 75 69 3c 2f 62 3e 2e 3c 62 72 3e 3c 62 72 3e gui</b>.<br><br>
02c0: 0d 0a 3c 74 61 62 6c 65 20 63 65 6c 6c 73 70 61 ..<table cellspa
02d0: 63 69 6e 67 3d 22 36 22 20 63 65 6c 6c 70 61 64 cing="6" cellpad
02e0: 64 69 6e 67 3d 22 36 22 20 62 67 63 6f 6c 6f 72 ding="6" bgcolor
02f0: 3d 22 23 66 30 66 66 65 30 22 20 77 69 64 74 68 ="#f0ffe0" width
0300: 3d 22 31 30 30 25 22 20 62 6f 72 64 65 72 3d 22 ="100%" border="
0310: 31 22 3e 0d 0a 3c 74 72 3e 3c 74 64 20 63 6f 6c 1">..<tr><td col
0320: 73 70 61 6e 3d 22 32 22 20 61 6c 69 67 6e 3d 22 span="2" align="
0330: 63 65 6e 74 65 72 22 3e 3c 68 33 3e 31 20 2d 20 center"><h3>1 -
0340: 45 73 74 61 62 6c 69 73 68 69 6e 67 20 61 20 43 Establishing a C
0350: 6f 6e 6e 65 63 74 69 6e 67 20 74 6f 20 61 20 50 onnecting to a P
0360: 6f 73 74 67 72 65 53 51 4c 20 44 42 4d 53 3c 2f ostgreSQL DBMS</
0370: 68 33 3e 3c 68 72 3e 3c 2f 74 64 3e 3c 2f 74 72 h3><hr></td></tr
0380: 3e 0d 0a 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 62 3e >..<tr>..<td><b>
0390: 31 2e 61 3c 2f 62 3e 20 66 69 72 73 74 20 70 72 1.a</b> first pr
03a0: 65 73 73 20 74 68 65 20 61 70 70 72 6f 70 72 69 ess the appropri
03b0: 61 74 65 20 62 75 74 74 6f 6e 20 66 72 6f 6d 20 ate button from
03c0: 74 68 65 20 54 6f 6f 6c 62 61 72 3c 2f 74 64 3e the Toolbar</td>
03d0: 0d 0a 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 ..<td><img src="
03e0: 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 https://www.gaia
03f0: 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e -gis.it/gaia-sin
0400: 73 2f 67 75 69 2d 70 6f 73 74 67 72 65 73 2f 67 s/gui-postgres/g
0410: 75 69 31 2e 70 6e 67 22 20 61 6c 74 3d 22 63 6f ui1.png" alt="co
0420: 6e 6e 65 63 74 69 6f 6e 20 31 22 3e 3c 2f 74 64 nnection 1"></td
0430: 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a >..</tr>..<tr>..
0440: 3c 74 64 3e 3c 62 3e 31 2e 62 3c 2f 62 3e 20 74 <td><b>1.b</b> t
0450: 68 65 6e 20 73 65 6c 65 63 74 20 74 68 65 20 61 hen select the a
0460: 70 70 72 6f 70 72 69 61 74 65 20 69 74 65 6d 20 ppropriate item
0470: 66 72 6f 6d 20 74 68 65 20 6d 61 69 6e 20 4d 65 from the main Me
0480: 6e 75 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 3c 69 6d nu</td>..<td><im
0490: 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 g src="https://w
04a0: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 ww.gaia-gis.it/g
04b0: 61 69 61 2d 73 69 6e 73 2f 67 75 69 2d 70 6f 73 aia-sins/gui-pos
04c0: 74 67 72 65 73 2f 67 75 69 32 2e 70 6e 67 22 20 tgres/gui2.png"
04d0: 61 6c 74 3d 22 63 6f 6e 6e 65 63 74 69 6f 6e 20 alt="connection
04e0: 32 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 2"></td>..</tr>.
04f0: 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 3c 74 .</tr>..<tr>..<t
0500: 64 3e 3c 62 3e 31 2e 63 3c 2f 62 3e 20 61 6e 64 d><b>1.c</b> and
0510: 20 66 69 6e 61 6c 6c 79 20 73 65 6c 65 63 74 20 finally select
0520: 74 68 65 20 61 70 70 72 6f 70 72 69 61 74 65 20 the appropriate
0530: 69 74 65 6d 20 66 72 6f 6d 20 74 68 65 20 63 6f item from the co
0540: 6e 74 65 78 74 20 4d 65 6e 75 20 74 68 61 74 20 ntext Menu that
0550: 77 69 6c 6c 20 61 70 70 65 61 72 20 62 79 20 63 will appear by c
0560: 6c 69 63 6b 69 6e 67 20 74 68 65 20 3c 62 3e 6c licking the <b>l
0570: 65 66 74 3c 2f 62 3e 20 62 75 74 74 6f 6e 20 6f eft</b> button o
0580: 66 20 74 68 65 20 6d 6f 75 73 65 20 6f 76 65 72 f the mouse over
0590: 20 74 68 65 20 3c 62 3e 50 6f 73 74 72 65 53 51 the <b>PostreSQ
05a0: 4c 3c 2f 62 3e 20 6d 61 69 6e 20 6e 6f 64 65 20 L</b> main node
05b0: 66 72 6f 6d 20 74 68 65 20 54 61 62 6c 65 20 54 from the Table T
05c0: 72 65 65 2e 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 3c ree.</td>..<td><
05d0: 69 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f img src="https:/
05e0: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 /www.gaia-gis.it
05f0: 2f 67 61 69 61 2d 73 69 6e 73 2f 67 75 69 2d 70 /gaia-sins/gui-p
0600: 6f 73 74 67 72 65 73 2f 67 75 69 33 2e 70 6e 67 ostgres/gui3.png
0610: 22 20 61 6c 74 3d 22 63 6f 6e 6e 65 63 74 69 6f " alt="connectio
0620: 6e 20 33 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 n 3"></td>..</tr
0630: 3e 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 62 3e 31 2e ><tr>..<td><b>1.
0640: 64 3c 2f 62 3e 20 69 6e 20 61 6c 6c 20 74 68 72 d</b> in all thr
0650: 65 65 20 63 61 73 65 73 20 74 68 65 20 50 6f 73 ee cases the Pos
0660: 74 67 72 65 53 51 4c 20 63 6f 6e 6e 65 63 74 69 tgreSQL connecti
0670: 6f 6e 20 64 69 61 6c 6f 67 20 77 69 6c 6c 20 61 on dialog will a
0680: 70 70 65 61 72 2e 3c 62 72 3e 0d 0a 4a 75 73 74 ppear.<br>..Just
0690: 20 69 6e 73 65 72 74 20 74 68 65 20 72 65 71 75 insert the requ
06a0: 69 72 65 64 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 ired connection
06b0: 61 72 67 75 6d 65 6e 74 73 20 61 6e 64 20 63 6f arguments and co
06c0: 6e 66 69 72 6d 2e 3c 62 72 3e 3c 62 72 3e 0d 0a nfirm.<br><br>..
06d0: 57 68 65 6e 20 69 6e 76 61 6c 69 64 20 61 72 67 When invalid arg
06e0: 75 6d 65 6e 74 73 20 61 72 65 20 67 69 76 65 6e uments are given
06f0: 2c 20 61 6e 20 65 72 72 6f 72 20 6d 65 73 73 61 , an error messa
0700: 67 65 20 20 77 69 6c 6c 20 62 65 20 74 68 65 6e ge will be then
0710: 20 64 69 73 70 6c 61 79 65 64 2c 20 6f 74 68 65 displayed, othe
0720: 72 77 69 73 65 20 74 68 65 20 63 6f 6e 6e 65 63 rwise the connec
0730: 74 69 6f 6e 20 77 69 6c 6c 20 62 65 20 69 6d 6d tion will be imm
0740: 65 64 69 61 74 65 6c 79 20 65 73 74 61 62 6c 69 ediately establi
0750: 73 68 65 64 2e 3c 62 72 3e 3c 62 72 3e 3c 62 72 shed.<br><br><br
0760: 3e 3c 68 72 3e 3c 62 72 3e 3c 62 72 3e 3c 62 72 ><hr><br><br><br
0770: 3e 0d 0a 49 66 20 79 6f 75 20 61 72 65 20 61 74 >..If you are at
0780: 74 65 6d 70 74 69 6e 67 20 74 6f 20 63 6f 6e 6e tempting to conn
0790: 65 63 74 20 61 20 72 65 6d 6f 74 65 20 73 65 72 ect a remote ser
07a0: 76 65 72 2c 20 79 6f 75 20 6d 61 79 20 66 69 6e ver, you may fin
07b0: 64 20 69 74 20 75 73 65 66 75 6c 20 74 6f 20 66 d it useful to f
07c0: 69 72 73 74 20 72 65 61 64 69 6e 67 20 74 68 65 irst reading the
07d0: 20 74 75 74 6f 72 69 61 6c 20 61 62 6f 75 74 20 tutorial about
07e0: 3c 61 20 68 72 65 66 3d 22 68 74 74 70 73 3a 2f <a href="https:/
07f0: 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 /www.gaia-gis.it
0800: 2f 66 6f 73 73 69 6c 2f 76 69 72 74 75 61 6c 70 /fossil/virtualp
0810: 67 2f 77 69 6b 69 3f 6e 61 6d 65 3d 70 6f 72 74 g/wiki?name=port
0820: 2d 66 6f 72 77 61 72 64 69 6e 67 22 3e 53 53 48 -forwarding">SSH
0830: 20 74 75 6e 6e 65 6c 69 6e 67 20 61 6e 64 20 50 tunneling and P
0840: 6f 72 74 20 46 6f 72 77 61 72 64 69 6e 67 3c 2f ort Forwarding</
0850: 61 3e 0d 0a 3c 62 72 3e 3c 62 72 3e 3c 62 72 3e a>..<br><br><br>
0860: 0d 0a 3c 68 72 3e 0d 0a 3c 74 61 62 6c 65 20 62 ..<hr>..<table b
0870: 67 63 6f 6c 6f 72 3d 22 23 66 66 63 63 38 30 22 gcolor="#ffcc80"
0880: 20 63 65 6c 6c 73 70 61 63 69 6e 67 3d 22 36 22 cellspacing="6"
0890: 20 63 65 6c 6c 70 61 64 64 69 6e 67 3d 22 36 22 cellpadding="6"
08a0: 20 62 6f 72 64 65 72 3d 22 31 22 20 77 69 64 74 border="1" widt
08b0: 68 3d 22 31 30 30 25 22 3e 0d 0a 3c 74 72 3e 3c h="100%">..<tr><
08c0: 74 64 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 td align="center
08d0: 22 3e 3c 68 33 3e 53 70 65 63 69 61 6c 20 6e 6f "><h3>Special no
08e0: 74 65 20 66 6f 72 20 57 69 6e 64 6f 77 73 20 75 te for Windows u
08f0: 73 65 72 73 3c 2f 68 33 3e 3c 2f 74 64 3e 3c 2f sers</h3></td></
0900: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 3e 0d 0a 50 tr>..<tr><td>..P
0910: 6c 65 61 73 65 20 72 65 61 64 20 74 68 65 20 3c lease read the <
0920: 61 20 68 72 65 66 3d 22 23 61 64 64 65 6e 64 75 a href="#addendu
0930: 6d 22 3e 41 64 64 65 6e 64 75 6d 3c 2f 61 3e 20 m">Addendum</a>
0940: 61 62 6f 75 74 20 4c 69 62 50 51 20 6c 61 74 65 about LibPQ late
0950: 20 62 69 6e 64 69 6e 67 2e 0d 0a 3c 2f 74 64 3e binding...</td>
0960: 3c 2f 74 72 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 3c </tr>..</table><
0970: 2f 74 64 3e 0d 0a 3c 74 64 3e 3c 69 6d 67 20 73 /td>..<td><img s
0980: 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e rc="https://www.
0990: 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 gaia-gis.it/gaia
09a0: 2d 73 69 6e 73 2f 67 75 69 2d 70 6f 73 74 67 72 -sins/gui-postgr
09b0: 65 73 2f 67 75 69 34 2e 70 6e 67 22 20 61 6c 74 es/gui4.png" alt
09c0: 3d 22 63 6f 6e 6e 65 63 74 69 6f 6e 20 34 22 3e ="connection 4">
09d0: 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 </td>..</tr>..<t
09e0: 72 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d 22 32 r><td colspan="2
09f0: 22 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 72 22 " align="center"
0a00: 3e 3c 68 33 3e 32 20 2d 20 45 78 70 61 6e 64 69 ><h3>2 - Expandi
0a10: 6e 67 20 74 68 65 20 50 6f 73 74 67 72 65 53 51 ng the PostgreSQ
0a20: 4c 20 74 72 65 65 3c 2f 68 33 3e 3c 68 72 3e 3c L tree</h3><hr><
0a30: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d /td></tr>..<tr>.
0a40: 0a 3c 74 64 3e 3c 62 3e 32 2e 61 3c 2f 62 3e 20 .<td><b>2.a</b>
0a50: 6f 6e 63 65 20 74 68 61 74 20 61 20 6e 65 77 20 once that a new
0a60: 50 6f 73 74 67 72 65 73 20 63 6f 6e 6e 65 63 74 Postgres connect
0a70: 69 6f 6e 20 68 61 73 20 62 65 65 6e 20 73 75 63 ion has been suc
0a80: 63 65 73 73 66 75 6c 6c 79 20 65 73 74 61 62 6c cessfully establ
0a90: 69 73 68 65 64 20 74 68 65 20 50 6f 73 74 67 72 ished the Postgr
0aa0: 65 73 20 6e 6f 64 65 20 6f 6e 20 74 68 65 20 6d es node on the m
0ab0: 61 69 6e 20 54 61 62 6c 65 20 54 72 65 65 20 77 ain Table Tree w
0ac0: 69 6c 6c 20 63 6f 6e 74 61 69 6e 20 61 6c 6c 20 ill contain all
0ad0: 54 61 62 6c 65 73 20 61 6e 64 20 56 69 65 77 73 Tables and Views
0ae0: 20 64 65 66 69 6e 65 64 20 6f 6e 20 74 68 65 20 defined on the
0af0: 50 6f 73 74 67 72 65 73 20 44 61 74 61 62 61 73 Postgres Databas
0b00: 65 2c 20 61 63 63 6f 72 64 69 6e 67 6c 79 20 74 e, accordingly t
0b10: 6f 20 74 68 65 20 75 73 75 61 6c 20 61 72 72 61 o the usual arra
0b20: 6e 67 65 6d 65 6e 74 20 61 64 6f 70 74 65 64 20 ngement adopted
0b30: 62 79 20 50 6f 73 74 67 72 65 73 3a 0d 0a 3c 75 by Postgres:..<u
0b40: 6c 3e 0d 0a 3c 6c 69 3e 43 6f 6e 6e 65 63 74 69 l>..<li>Connecti
0b50: 6f 6e 20 3c 69 3e 61 6b 61 3c 2f 69 3e 20 3c 62 on <i>aka</i> <b
0b60: 3e 44 61 74 61 62 61 73 65 3c 2f 62 3e 0d 0a 3c >Database</b>..<
0b70: 75 6c 3e 0d 0a 3c 6c 69 3e 3c 62 3e 53 63 68 65 ul>..<li><b>Sche
0b80: 6d 61 3c 2f 62 3e 0d 0a 3c 75 6c 3e 0d 0a 3c 6c ma</b>..<ul>..<l
0b90: 69 3e 3c 62 3e 54 61 62 6c 65 3c 2f 62 3e 20 6f i><b>Table</b> o
0ba0: 72 20 3c 62 3e 56 69 65 77 3c 2f 62 3e 3c 2f 6c r <b>View</b></l
0bb0: 69 3e 0d 0a 3c 2f 75 6c 3e 3c 2f 6c 69 3e 0d 0a i>..</ul></li>..
0bc0: 3c 2f 75 6c 3e 3c 2f 6c 69 3e 0d 0a 3c 2f 75 6c </ul></li>..</ul
0bd0: 3e 3c 62 72 3e 3c 62 72 3e 0d 0a 45 61 63 68 20 ><br><br>..Each
0be0: 6b 69 6e 64 20 6f 66 20 64 61 74 61 62 61 73 65 kind of database
0bf0: 20 6f 62 6a 65 63 74 20 77 69 6c 6c 20 62 65 20 object will be
0c00: 63 6c 65 61 72 6c 79 20 69 64 65 6e 74 69 66 69 clearly identifi
0c10: 65 64 20 62 79 20 61 6e 20 61 70 70 72 6f 70 72 ed by an appropr
0c20: 69 61 74 65 20 69 63 6f 6e 3b 20 56 69 65 77 73 iate icon; Views
0c30: 20 77 69 6c 6c 20 62 65 20 64 69 73 74 69 6e 67 will be disting
0c40: 75 69 73 68 65 64 20 66 72 6f 6d 20 54 61 62 6c uished from Tabl
0c50: 65 73 2c 20 61 6e 64 20 3c 62 3e 50 6f 73 74 47 es, and <b>PostG
0c60: 49 53 3c 2f 62 3e 20 54 61 62 6c 65 73 20 28 63 IS</b> Tables (c
0c70: 6f 6e 74 61 69 6e 69 6e 67 20 3c 62 3e 47 65 6f ontaining <b>Geo
0c80: 6d 65 74 72 79 3c 2f 62 3e 20 63 6f 6c 75 6d 6e metry</b> column
0c90: 73 29 20 77 69 6c 6c 20 62 65 20 63 6c 65 61 72 s) will be clear
0ca0: 6c 79 20 64 69 73 74 69 6e 67 75 69 73 68 65 64 ly distinguished
0cb0: 20 66 72 6f 6d 20 6f 72 64 69 6e 61 72 79 20 54 from ordinary T
0cc0: 61 62 6c 65 73 2e 3c 62 72 3e 3c 62 72 3e 0d 0a ables.<br><br>..
0cd0: 3c 62 3e 4e 6f 74 69 63 65 3c 2f 62 3e 3a 20 61 <b>Notice</b>: a
0ce0: 6c 6c 20 50 6f 73 74 67 72 65 73 20 54 61 62 6c ll Postgres Tabl
0cf0: 65 73 20 61 6e 64 20 56 69 65 77 73 20 28 6e 61 es and Views (na
0d00: 6d 65 6c 79 3a 20 3c 62 3e 56 69 72 74 75 61 6c mely: <b>Virtual
0d10: 50 6f 73 74 67 72 65 73 3c 2f 62 3e 20 54 61 62 Postgres</b> Tab
0d20: 6c 65 73 29 20 77 69 6c 6c 20 61 6c 77 61 79 73 les) will always
0d30: 20 68 61 76 65 20 61 20 63 6f 6e 76 65 6e 74 69 have a conventi
0d40: 6f 6e 61 6c 20 6e 61 6d 65 20 73 74 61 72 74 69 onal name starti
0d50: 6e 67 20 77 69 74 68 20 61 20 3c 62 3e 76 70 67 ng with a <b>vpg
0d60: 5f 3c 2f 62 3e 20 70 72 65 66 69 78 2e 3c 62 72 _</b> prefix.<br
0d70: 3e 0d 0a 57 68 65 6e 65 76 65 72 20 70 6f 73 73 >..Whenever poss
0d80: 69 62 6c 65 20 74 68 65 20 6f 72 69 67 69 6e 61 ible the origina
0d90: 6c 20 50 6f 73 74 67 72 65 73 20 4e 61 6d 65 20 l Postgres Name
0da0: 77 69 6c 6c 20 62 65 20 70 72 65 73 65 72 76 65 will be preserve
0db0: 64 2c 20 6f 74 68 65 72 77 69 73 65 20 69 74 20 d, otherwise it
0dc0: 77 69 6c 6c 20 62 65 20 64 69 73 61 6d 62 69 67 will be disambig
0dd0: 75 61 74 65 64 20 62 79 20 61 64 64 69 6e 67 20 uated by adding
0de0: 61 6e 20 61 70 70 72 6f 70 72 69 61 74 65 20 6e an appropriate n
0df0: 75 6d 65 72 69 63 20 73 75 66 66 69 78 2e 3c 62 umeric suffix.<b
0e00: 72 3e 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 68 72 3e r><br><br>..<hr>
0e10: 0d 0a 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 62 3e 4e ..<br><br>..<b>N
0e20: 6f 74 65 3c 2f 62 3e 3a 20 61 6c 6c 20 64 61 74 ote</b>: all dat
0e30: 61 62 61 73 65 20 6f 62 6a 65 63 74 73 20 69 6e abase objects in
0e40: 20 74 68 65 20 50 6f 73 74 67 72 65 73 20 54 72 the Postgres Tr
0e50: 65 65 20 61 72 65 20 69 6e 68 65 72 65 6e 74 6c ee are inherentl
0e60: 79 20 74 72 61 6e 73 69 65 6e 74 2c 20 61 6e 64 y transient, and
0e70: 20 77 69 6c 6c 20 61 75 74 6f 6d 61 74 69 63 61 will automatica
0e80: 6c 6c 79 20 64 69 73 61 70 70 65 61 72 20 77 68 lly disappear wh
0e90: 65 6e 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e en the correspon
0ea0: 64 69 6e 67 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 ding connection
0eb0: 77 69 6c 6c 20 62 65 20 63 6c 6f 73 65 64 2c 20 will be closed,
0ec0: 6f 72 20 77 68 65 6e 20 74 68 65 20 63 75 72 72 or when the curr
0ed0: 65 6e 74 20 73 65 73 73 69 6f 6e 20 65 6e 64 73 ent session ends
0ee0: 2e 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 3c 69 6d 67 .</td>..<td><img
0ef0: 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 src="https://ww
0f00: 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 w.gaia-gis.it/ga
0f10: 69 61 2d 73 69 6e 73 2f 67 75 69 2d 70 6f 73 74 ia-sins/gui-post
0f20: 67 72 65 73 2f 67 75 69 35 2e 70 6e 67 22 20 61 gres/gui5.png" a
0f30: 6c 74 3d 22 74 61 62 6c 65 20 74 72 65 65 22 3e lt="table tree">
0f40: 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 </td>..</tr>..<t
0f50: 72 3e 0d 0a 3c 74 64 3e 3c 62 3e 32 2e 62 3c 2f r>..<td><b>2.b</
0f60: 62 3e 20 69 66 2c 20 66 6f 72 20 61 6e 79 20 70 b> if, for any p
0f70: 6f 73 73 69 62 6c 65 20 72 65 61 73 6f 6e 20 28 ossible reason (
0f80: 73 79 73 74 65 6d 20 63 72 61 73 68 2c 20 70 6f system crash, po
0f90: 77 65 72 20 66 61 69 6c 75 72 65 20 61 6e 64 20 wer failure and
0fa0: 61 6c 69 6b 65 29 2c 20 74 68 65 20 63 75 72 72 alike), the curr
0fb0: 65 6e 74 20 73 65 73 73 69 6f 6e 20 77 69 6c 6c ent session will
0fc0: 20 66 61 69 6c 20 74 6f 20 63 6f 72 72 65 63 74 fail to correct
0fd0: 6c 79 20 70 65 72 66 6f 72 6d 20 74 68 65 20 65 ly perform the e
0fe0: 78 70 65 63 74 65 64 20 66 69 6e 61 6c 20 63 6c xpected final cl
0ff0: 65 61 6e 75 70 2c 20 79 6f 75 72 20 53 51 4c 69 eanup, your SQLi
1000: 74 65 20 64 61 74 61 62 61 73 65 20 77 69 6c 6c te database will
1010: 20 72 65 6d 61 69 6e 20 69 6e 20 61 20 64 69 72 remain in a dir
1020: 74 79 20 61 6e 64 20 69 6e 63 6f 6e 73 69 73 74 ty and inconsist
1030: 65 6e 74 20 73 74 61 74 65 2e 3c 62 72 3e 0d 0a ent state.<br>..
1040: 41 73 20 74 68 65 20 73 69 64 65 20 66 69 67 75 As the side figu
1050: 72 65 20 73 68 6f 77 73 2c 20 77 68 65 6e 20 72 re shows, when r
1060: 65 73 74 61 72 74 69 6e 67 20 61 20 6e 65 77 20 estarting a new
1070: 73 65 73 73 69 6f 6e 20 6d 61 6e 79 20 3c 62 3e session many <b>
1080: 3c 69 3e 6f 72 70 68 61 6e 20 56 69 72 74 75 61 <i>orphan Virtua
1090: 6c 50 6f 73 74 67 72 65 73 20 74 61 62 6c 65 73 lPostgres tables
10a0: 3c 2f 69 3e 3c 2f 62 3e 20 77 69 6c 6c 20 62 61 </i></b> will ba
10b0: 64 6c 79 20 72 65 6d 61 69 6e 20 66 72 6f 6d 20 dly remain from
10c0: 74 68 65 20 6c 61 73 74 20 61 62 6f 72 74 65 64 the last aborted
10d0: 20 73 65 73 73 69 6f 6e 2e 3c 62 72 3e 3c 62 72 session.<br><br
10e0: 3e 0d 0a 49 66 20 74 68 69 73 20 69 73 20 79 6f >..If this is yo
10f0: 75 72 20 63 61 73 65 2c 20 64 6f 6e 27 74 20 64 ur case, don't d
1100: 65 73 70 61 69 72 3a 20 79 6f 75 20 6a 75 73 74 espair: you just
1110: 20 68 61 76 65 20 74 6f 20 73 65 6c 65 63 74 20 have to select
1120: 74 68 65 20 61 70 70 72 6f 70 72 69 61 74 65 20 the appropriate
1130: 69 74 65 6d 20 66 72 6f 6d 20 74 68 65 20 50 6f item from the Po
1140: 73 74 67 72 65 73 20 63 6f 6e 74 65 78 74 20 6d stgres context m
1150: 65 6e 75 20 61 6e 64 20 74 68 65 20 44 42 20 77 enu and the DB w
1160: 69 6c 6c 20 62 65 20 69 6d 6d 65 64 69 61 74 65 ill be immediate
1170: 6c 79 20 72 65 63 6f 76 65 72 65 64 20 69 6e 20 ly recovered in
1180: 61 20 73 61 66 65 20 63 6f 6e 73 69 73 74 65 6e a safe consisten
1190: 74 20 61 6e 64 20 63 6c 65 61 6e 20 73 74 61 74 t and clean stat
11a0: 65 2e 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 3c 69 6d e.</td>..<td><im
11b0: 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 g src="https://w
11c0: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 ww.gaia-gis.it/g
11d0: 61 69 61 2d 73 69 6e 73 2f 67 75 69 2d 70 6f 73 aia-sins/gui-pos
11e0: 74 67 72 65 73 2f 6f 72 70 68 61 6e 73 2e 70 6e tgres/orphans.pn
11f0: 67 22 20 61 6c 74 3d 22 6f 72 70 68 61 6e 20 74 g" alt="orphan t
1200: 61 62 6c 65 73 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f ables"></td>..</
1210: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 63 6f 6c tr>..<tr><td col
1220: 73 70 61 6e 3d 22 32 22 20 61 6c 69 67 6e 3d 22 span="2" align="
1230: 63 65 6e 74 65 72 22 3e 3c 68 33 3e 33 20 2d 20 center"><h3>3 -
1240: 4d 65 74 61 64 61 74 61 20 6f 66 20 50 6f 73 74 Metadata of Post
1250: 67 72 65 53 51 4c 20 6f 62 6a 65 63 74 73 3c 2f greSQL objects</
1260: 68 33 3e 3c 68 72 3e 3c 2f 74 64 3e 3c 2f 74 72 h3><hr></td></tr
1270: 3e 0d 0a 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 62 3e >..<tr>..<td><b>
1280: 33 2e 61 3c 2f 62 3e 20 79 6f 75 20 63 61 6e 20 3.a</b> you can
1290: 65 61 73 69 6c 79 20 71 75 65 72 79 20 74 68 65 easily query the
12a0: 20 6d 65 74 61 64 61 74 61 20 66 6f 72 20 65 61 metadata for ea
12b0: 63 68 20 50 6f 73 74 67 72 65 73 20 6f 62 6a 65 ch Postgres obje
12c0: 63 74 3b 20 6a 75 73 74 20 73 65 6c 65 63 74 20 ct; just select
12d0: 74 68 65 20 61 70 70 72 6f 70 72 69 61 74 65 20 the appropriate
12e0: 69 74 65 6d 20 66 72 6f 6d 20 74 68 65 20 63 6f item from the co
12f0: 6e 74 65 78 74 20 6d 65 6e 75 2e 3c 2f 74 64 3e ntext menu.</td>
1300: 0d 0a 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 ..<td><img src="
1310: 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 https://www.gaia
1320: 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e -gis.it/gaia-sin
1330: 73 2f 67 75 69 2d 70 6f 73 74 67 72 65 73 2f 67 s/gui-postgres/g
1340: 75 69 36 2e 70 6e 67 22 20 61 6c 74 3d 22 6d 65 ui6.png" alt="me
1350: 74 61 64 61 74 61 20 69 6e 66 6f 22 3e 3c 2f 74 tadata info"></t
1360: 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d d>..</tr>..<tr>.
1370: 0a 3c 74 64 3e 3c 62 3e 33 2e 62 3c 2f 62 3e 20 .<td><b>3.b</b>
1380: 4d 65 74 61 64 61 74 61 20 66 6f 72 20 61 20 3c Metadata for a <
1390: 62 3e 43 6f 6e 6e 65 63 74 69 6f 6e 3c 2f 62 3e b>Connection</b>
13a0: 20 3c 69 3e 61 6b 61 3c 2f 69 3e 20 3c 62 3e 44 <i>aka</i> <b>D
13b0: 61 74 61 62 61 73 65 3c 2f 62 3e 20 6f 62 6a 65 atabase</b> obje
13c0: 63 74 20 77 69 6c 6c 20 72 65 70 6f 72 74 20 74 ct will report t
13d0: 68 65 20 69 6e 69 74 69 61 6c 20 63 6f 6e 6e 65 he initial conne
13e0: 63 74 69 6f 6e 20 61 72 67 75 6d 65 6e 74 73 2e ction arguments.
13f0: 3c 62 72 3e 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 68 <br><br><br>..<h
1400: 72 3e 0d 0a 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 62 r>..<br><br>..<b
1410: 3e 4e 6f 74 65 3c 2f 62 3e 3a 20 79 6f 75 20 63 >Note</b>: you c
1420: 61 6e 20 65 76 65 6e 74 75 61 6c 6c 79 20 63 6f an eventually co
1430: 6e 6e 65 63 74 20 6d 6f 72 65 20 74 68 61 6e 20 nnect more than
1440: 61 20 73 69 6e 67 6c 65 20 50 6f 73 74 67 72 65 a single Postgre
1450: 73 20 44 61 74 61 62 61 73 65 20 69 6e 20 74 68 s Database in th
1460: 65 20 73 61 6d 65 20 73 65 73 73 69 6f 6e 3a 20 e same session:
1470: 63 6f 6e 6e 65 63 74 69 6e 67 20 74 77 69 63 65 connecting twice
1480: 20 74 68 65 20 73 61 6d 65 20 44 61 74 61 62 61 the same Databa
1490: 73 65 20 69 73 20 61 6c 77 61 79 73 20 66 6f 72 se is always for
14a0: 62 69 64 64 65 6e 2e 3c 2f 74 64 3e 0d 0a 3c 74 bidden.</td>..<t
14b0: 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 70 d><img src="http
14c0: 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 73 s://www.gaia-gis
14d0: 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 67 75 .it/gaia-sins/gu
14e0: 69 2d 70 6f 73 74 67 72 65 73 2f 67 75 69 37 2e i-postgres/gui7.
14f0: 70 6e 67 22 20 61 6c 74 3d 22 63 6f 6e 6e 65 63 png" alt="connec
1500: 74 69 6f 6e 20 6d 65 74 61 64 61 74 61 22 3e 3c tion metadata"><
1510: 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 /td>..</tr>..<tr
1520: 3e 0d 0a 3c 74 64 3e 3c 62 3e 33 2e 63 3c 2f 62 >..<td><b>3.c</b
1530: 3e 20 4d 65 74 61 64 61 74 61 20 66 6f 72 20 61 > Metadata for a
1540: 20 3c 62 3e 53 63 68 65 6d 61 3c 2f 62 3e 20 6f <b>Schema</b> o
1550: 62 6a 65 63 74 20 61 72 65 6e 27 74 20 72 65 61 bject aren't rea
1560: 6c 6c 79 20 69 6e 74 65 72 65 73 74 69 6e 67 2c lly interesting,
1570: 20 62 65 63 61 75 73 65 20 6a 75 73 74 20 74 68 because just th
1580: 65 20 6e 61 6d 65 20 69 73 20 72 65 70 6f 72 74 e name is report
1590: 65 64 2e 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 3c 69 ed.</td>..<td><i
15a0: 6d 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f mg src="https://
15b0: 77 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f www.gaia-gis.it/
15c0: 67 61 69 61 2d 73 69 6e 73 2f 67 75 69 2d 70 6f gaia-sins/gui-po
15d0: 73 74 67 72 65 73 2f 67 75 69 38 2e 70 6e 67 22 stgres/gui8.png"
15e0: 20 61 6c 74 3d 22 73 63 68 65 6d 61 20 6d 65 74 alt="schema met
15f0: 61 64 61 74 61 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f adata"></td>..</
1600: 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 3c 74 64 3e 3c tr>..<tr>..<td><
1610: 62 3e 33 2e 64 3c 2f 62 3e 20 4d 65 74 61 64 61 b>3.d</b> Metada
1620: 74 61 20 66 6f 72 20 3c 62 3e 54 61 62 6c 65 3c ta for <b>Table<
1630: 2f 62 3e 20 6f 72 20 3c 62 3e 56 69 65 77 3c 2f /b> or <b>View</
1640: 62 3e 20 6f 62 6a 65 63 74 73 20 77 69 6c 6c 20 b> objects will
1650: 72 65 70 6f 72 74 20 61 6c 6c 20 3c 62 3e 47 52 report all <b>GR
1660: 41 4e 54 20 70 65 72 6d 69 73 73 69 6f 6e 73 3c ANT permissions<
1670: 2f 62 3e 20 66 6f 72 20 74 68 65 20 63 75 72 72 /b> for the curr
1680: 65 6e 74 20 55 73 65 72 2e 3c 62 72 3e 3c 62 72 ent User.<br><br
1690: 3e 3c 62 72 3e 0d 0a 3c 68 72 3e 0d 0a 3c 62 72 ><br>..<hr>..<br
16a0: 3e 3c 62 72 3e 0d 0a 3c 62 3e 4e 6f 74 65 3c 2f ><br>..<b>Note</
16b0: 62 3e 3a 20 61 6c 73 6f 20 69 6e 20 74 68 65 20 b>: also in the
16c0: 63 61 73 65 20 6f 66 20 61 20 3c 62 3e 52 45 41 case of a <b>REA
16d0: 44 2d 57 52 49 54 45 3c 2f 62 3e 20 65 6e 61 62 D-WRITE</b> enab
16e0: 6c 65 64 20 63 6f 6e 6e 65 63 74 69 6f 6e 2c 20 led connection,
16f0: 61 6c 6c 20 50 6f 73 74 67 72 65 73 20 54 61 62 all Postgres Tab
1700: 6c 65 73 20 6c 61 63 6b 69 6e 67 20 74 68 65 20 les lacking the
1710: 70 65 72 6d 69 73 73 69 6f 6e 20 74 6f 20 65 78 permission to ex
1720: 65 63 75 74 65 20 3c 62 3e 49 4e 53 45 52 54 3c ecute <b>INSERT<
1730: 2f 62 3e 2c 20 3c 62 3e 55 50 44 41 54 45 3c 2f /b>, <b>UPDATE</
1740: 62 3e 20 6f 72 20 3c 62 3e 44 45 4c 45 54 45 3c b> or <b>DELETE<
1750: 2f 62 3e 20 73 74 61 74 65 6d 65 6e 74 73 20 77 /b> statements w
1760: 69 6c 6c 20 62 65 20 61 6c 77 61 79 73 20 63 6f ill be always co
1770: 6e 73 69 64 65 72 65 64 20 74 6f 20 62 65 20 3c nsidered to be <
1780: 62 3e 52 45 41 44 2d 4f 4e 4c 59 3c 2f 62 3e 2e b>READ-ONLY</b>.
1790: 3c 62 72 3e 0d 0a 45 78 61 63 74 6c 79 20 61 73 <br>..Exactly as
17a0: 20 61 6e 79 20 6f 74 68 65 72 20 54 61 62 6c 65 any other Table
17b0: 20 6e 6f 74 20 73 75 70 70 6f 72 74 65 64 20 62 not supported b
17c0: 79 20 61 20 3c 62 3e 50 52 49 4d 41 52 59 20 4b y a <b>PRIMARY K
17d0: 45 59 3c 2f 62 3e 20 64 65 66 69 6e 69 74 69 6f EY</b> definitio
17e0: 6e 2e 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 3c 69 6d n.</td>..<td><im
17f0: 67 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 g src="https://w
1800: 77 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 ww.gaia-gis.it/g
1810: 61 69 61 2d 73 69 6e 73 2f 67 75 69 2d 70 6f 73 aia-sins/gui-pos
1820: 74 67 72 65 73 2f 67 75 69 39 2e 70 6e 67 22 20 tgres/gui9.png"
1830: 61 6c 74 3d 22 74 61 62 6c 65 20 6d 65 74 61 64 alt="table metad
1840: 61 74 61 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 ata"></td>..</tr
1850: 3e 0d 0a 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 62 3e >..<tr>..<td><b>
1860: 33 2e 65 3c 2f 62 3e 20 4d 65 74 61 64 61 74 61 3.e</b> Metadata
1870: 20 66 6f 72 20 61 20 3c 62 3e 50 6f 73 74 47 49 for a <b>PostGI
1880: 53 20 54 61 62 6c 65 3c 2f 62 3e 20 6f 62 6a 65 S Table</b> obje
1890: 63 74 73 20 77 69 6c 6c 20 72 65 70 6f 72 74 20 cts will report
18a0: 61 20 66 75 6c 6c 20 71 75 61 6c 69 66 69 63 61 a full qualifica
18b0: 74 69 6f 6e 20 6f 66 20 74 68 65 20 3c 62 3e 47 tion of the <b>G
18c0: 45 4f 4d 45 54 52 59 3c 2f 62 3e 20 63 6f 6c 75 EOMETRY</b> colu
18d0: 6d 6e 28 73 29 2c 20 74 68 69 73 20 69 6e 63 6c mn(s), this incl
18e0: 75 64 69 6e 67 20 74 68 65 20 47 65 6f 6d 65 74 uding the Geomet
18f0: 72 79 54 79 70 65 2c 20 74 68 65 20 53 72 69 64 ryType, the Srid
1900: 20 61 6e 64 20 74 68 65 20 43 6f 6f 72 64 69 6e and the Coordin
1910: 61 74 65 44 69 6d 65 6e 73 69 6f 6e 73 2e 3c 2f ateDimensions.</
1920: 74 64 3e 0d 0a 3c 74 64 3e 3c 69 6d 67 20 73 72 td>..<td><img sr
1930: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 c="https://www.g
1940: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d aia-gis.it/gaia-
1950: 73 69 6e 73 2f 67 75 69 2d 70 6f 73 74 67 72 65 sins/gui-postgre
1960: 73 2f 67 75 69 31 30 2e 70 6e 67 22 20 61 6c 74 s/gui10.png" alt
1970: 3d 22 70 6f 73 74 67 69 73 20 6d 65 74 61 64 61 ="postgis metada
1980: 74 61 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e ta"></td>..</tr>
1990: 0d 0a 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 62 3e 33 ..<tr>..<td><b>3
19a0: 2e 66 3c 2f 62 3e 20 61 6c 6c 20 3c 62 3e 50 6f .f</b> all <b>Po
19b0: 73 74 47 49 53 20 54 61 62 6c 65 73 3c 2f 62 3e stGIS Tables</b>
19c0: 20 77 69 6c 6c 20 61 6c 77 61 79 73 20 68 61 76 will always hav
19d0: 65 20 61 20 3c 62 3e 63 6f 6d 70 61 6e 69 6f 6e e a <b>companion
19e0: 20 54 61 62 6c 65 3c 2f 62 3e 20 73 68 61 72 69 Table</b> shari
19f0: 6e 67 20 74 68 65 20 73 61 6d 65 20 69 64 65 6e ng the same iden
1a00: 74 69 63 61 6c 20 6e 61 6d 65 20 65 78 63 65 70 tical name excep
1a10: 74 20 74 68 61 74 20 66 6f 72 20 61 20 66 69 6e t that for a fin
1a20: 61 6c 20 3c 62 3e 5f 70 6f 73 74 67 69 73 3c 2f al <b>_postgis</
1a30: 62 3e 20 73 75 66 66 69 78 2e 3c 62 72 3e 3c 62 b> suffix.<br><b
1a40: 72 3e 3c 62 72 3e 0d 0a 3c 62 3e 4e 6f 74 65 3c r><br>..<b>Note<
1a50: 2f 62 3e 3a 20 74 68 65 73 65 20 61 72 65 20 6e /b>: these are n
1a60: 6f 74 20 3c 62 3e 56 69 72 74 75 61 6c 50 6f 73 ot <b>VirtualPos
1a70: 74 67 72 65 73 20 54 61 62 6c 65 73 3c 2f 62 3e tgres Tables</b>
1a80: 3b 20 74 68 65 79 20 61 72 65 20 69 6e 73 74 65 ; they are inste
1a90: 61 64 20 53 70 61 74 69 61 6c 69 74 65 27 73 20 ad Spatialite's
1aa0: 6f 77 6e 20 3c 62 3e 53 70 61 74 69 61 6c 20 56 own <b>Spatial V
1ab0: 69 65 77 73 3c 2f 62 3e 2c 20 61 6e 64 20 74 68 iews</b>, and th
1ac0: 65 69 72 20 69 6e 74 65 6e 64 65 64 20 73 63 6f eir intended sco
1ad0: 70 65 20 69 73 20 74 6f 20 70 65 72 66 6f 72 6d pe is to perform
1ae0: 20 61 20 73 69 6c 65 6e 74 20 61 6e 64 20 66 75 a silent and fu
1af0: 6c 6c 79 20 74 72 61 6e 73 70 61 72 65 6e 74 20 lly transparent
1b00: 63 6f 6e 76 65 72 73 69 6f 6e 20 6f 66 20 62 69 conversion of bi
1b10: 6e 61 72 79 20 47 65 6f 6d 65 74 72 69 65 73 20 nary Geometries
1b20: 62 61 63 6b 20 61 6e 64 20 66 6f 72 74 68 20 66 back and forth f
1b30: 72 6f 6d 20 6f 6e 65 20 66 6f 72 6d 61 74 20 74 rom one format t
1b40: 6f 20 74 68 65 20 6f 74 68 65 72 20 69 6e 20 74 o the other in t
1b50: 68 65 20 6d 6f 73 74 20 75 73 65 72 20 66 72 69 he most user fri
1b60: 65 6e 64 6c 79 20 77 61 79 2e 3c 2f 74 64 3e 0d endly way.</td>.
1b70: 0a 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 .<td><img src="h
1b80: 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d ttps://www.gaia-
1b90: 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 gis.it/gaia-sins
1ba0: 2f 67 75 69 2d 70 6f 73 74 67 72 65 73 2f 67 75 /gui-postgres/gu
1bb0: 69 31 31 2e 70 6e 67 22 20 61 6c 74 3d 22 70 6f i11.png" alt="po
1bc0: 73 74 67 69 73 20 77 72 61 70 70 65 72 20 6d 65 stgis wrapper me
1bd0: 74 61 64 61 74 61 22 3e 3c 2f 74 64 3e 0d 0a 3c tadata"></td>..<
1be0: 2f 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 63 6f /tr>..<tr><td co
1bf0: 6c 73 70 61 6e 3d 22 32 22 20 61 6c 69 67 6e 3d lspan="2" align=
1c00: 22 63 65 6e 74 65 72 22 3e 3c 68 33 3e 34 20 2d "center"><h3>4 -
1c10: 20 48 61 6e 64 6c 69 6e 67 20 50 6f 73 74 67 72 Handling Postgr
1c20: 65 53 51 4c 20 54 61 62 6c 65 73 20 61 6e 64 20 eSQL Tables and
1c30: 56 69 65 77 73 3c 2f 68 33 3e 3c 68 72 3e 3c 2f Views</h3><hr></
1c40: 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a td></tr>..<tr>..
1c50: 3c 74 64 3e 3c 62 3e 34 2e 61 3c 2f 62 3e 20 50 <td><b>4.a</b> P
1c60: 6f 73 74 67 72 65 53 51 4c 20 54 61 62 6c 65 73 ostgreSQL Tables
1c70: 20 61 6e 64 20 56 69 65 77 73 20 61 72 65 20 63 and Views are c
1c80: 6f 6e 73 69 64 65 72 65 64 2c 20 61 73 20 66 61 onsidered, as fa
1c90: 72 20 61 73 20 70 6f 73 73 69 62 6c 65 2c 20 61 r as possible, a
1ca0: 73 20 69 66 20 74 68 65 79 20 77 65 72 65 20 6e s if they were n
1cb0: 61 74 69 76 65 20 53 51 4c 69 74 65 20 6f 62 6a ative SQLite obj
1cc0: 65 63 74 73 2e 3c 62 72 3e 0d 0a 53 6f 20 74 68 ects.<br>..So th
1cd0: 65 20 75 73 75 61 6c 20 6f 70 65 72 61 74 69 6f e usual operatio
1ce0: 6e 73 20 73 75 70 70 6f 72 74 65 64 20 6f 6e 20 ns supported on
1cf0: 53 51 4c 69 74 65 27 73 20 6f 77 6e 20 6f 62 6a SQLite's own obj
1d00: 65 63 74 73 20 77 69 6c 6c 20 62 65 20 73 75 70 ects will be sup
1d10: 70 6f 72 74 65 64 20 61 6c 73 6f 20 69 6e 20 74 ported also in t
1d20: 68 65 20 63 61 73 65 20 6f 66 20 50 6f 73 74 67 he case of Postg
1d30: 72 65 53 51 4c 20 6f 62 6a 65 63 74 73 2e 3c 2f reSQL objects.</
1d40: 74 64 3e 0d 0a 3c 74 64 3e 3c 69 6d 67 20 73 72 td>..<td><img sr
1d50: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 c="https://www.g
1d60: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d aia-gis.it/gaia-
1d70: 73 69 6e 73 2f 67 75 69 2d 70 6f 73 74 67 72 65 sins/gui-postgre
1d80: 73 2f 67 75 69 31 32 2e 70 6e 67 22 20 61 6c 74 s/gui12.png" alt
1d90: 3d 22 74 61 62 6c 65 20 6f 70 65 72 61 74 69 6f ="table operatio
1da0: 6e 73 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e ns"></td>..</tr>
1db0: 0d 0a 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 62 3e 34 ..<tr>..<td><b>4
1dc0: 2e 62 3c 2f 62 3e 20 74 68 65 20 61 62 6f 76 65 .b</b> the above
1dd0: 20 63 72 69 74 65 72 69 61 20 77 69 6c 6c 20 61 criteria will a
1de0: 70 70 6c 79 20 61 6c 73 6f 20 74 6f 20 50 6f 73 pply also to Pos
1df0: 74 47 49 53 20 47 65 6f 6d 65 74 72 69 65 73 2e tGIS Geometries.
1e00: 3c 62 72 3e 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 62 <br><br><br>..<b
1e10: 3e 48 69 6e 74 3c 2f 62 3e 3a 20 65 78 70 6f 72 >Hint</b>: expor
1e20: 74 69 6e 67 20 61 20 66 75 6c 6c 20 53 68 61 70 ting a full Shap
1e30: 65 66 69 6c 65 20 66 72 6f 6d 20 61 20 50 6f 73 efile from a Pos
1e40: 74 47 49 53 20 47 65 6f 6d 65 74 72 79 20 77 61 tGIS Geometry wa
1e50: 73 20 6e 65 76 65 72 20 6d 6f 72 65 20 64 69 72 s never more dir
1e60: 65 63 74 20 61 6e 64 20 73 69 6d 70 6c 65 20 74 ect and simple t
1e70: 68 61 6e 20 74 68 69 73 2e 3c 2f 74 64 3e 0d 0a han this.</td>..
1e80: 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 <td><img src="ht
1e90: 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 tps://www.gaia-g
1ea0: 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f is.it/gaia-sins/
1eb0: 67 75 69 2d 70 6f 73 74 67 72 65 73 2f 67 75 69 gui-postgres/gui
1ec0: 31 33 2e 70 6e 67 22 20 61 6c 74 3d 22 67 65 6f 13.png" alt="geo
1ed0: 6d 65 74 72 79 20 6f 70 65 72 61 74 69 6f 6e 73 metry operations
1ee0: 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a "></td>..</tr>..
1ef0: 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 62 3e 34 2e 63 <tr>..<td><b>4.c
1f00: 3c 2f 62 3e 20 62 65 20 77 61 72 6e 65 64 3b 20 </b> be warned;
1f10: 64 69 72 65 63 74 6c 79 20 71 75 65 72 79 69 6e directly queryin
1f20: 67 20 61 20 3c 62 3e 50 6f 73 74 47 49 53 20 54 g a <b>PostGIS T
1f30: 61 62 6c 65 3c 2f 62 3e 20 28 69 2e 65 2e 20 61 able</b> (i.e. a
1f40: 20 56 69 72 74 75 61 6c 50 6f 73 74 67 72 65 73 VirtualPostgres
1f50: 20 54 61 62 6c 65 20 63 6f 6e 74 61 69 6e 69 6e Table containin
1f60: 67 20 50 6f 73 74 47 49 53 20 47 65 6f 6d 65 74 g PostGIS Geomet
1f70: 72 69 65 73 29 20 6e 65 76 65 72 20 69 73 20 61 ries) never is a
1f80: 20 67 6f 6f 64 20 69 64 65 61 2e 0d 0a 59 6f 75 good idea...You
1f90: 27 6c 6c 20 62 65 20 61 6c 77 61 79 73 20 61 73 'll be always as
1fa0: 6b 65 64 20 74 77 69 63 65 20 62 65 66 6f 72 65 ked twice before
1fb0: 20 73 74 61 72 74 69 6e 67 20 73 75 63 68 20 61 starting such a
1fc0: 20 73 74 75 70 69 64 20 28 61 6e 64 20 70 6f 74 stupid (and pot
1fd0: 65 6e 74 69 61 6c 6c 79 20 64 61 6e 67 65 72 6f entially dangero
1fe0: 75 73 29 20 61 63 74 69 6f 6e 2e 3c 2f 74 64 3e us) action.</td>
1ff0: 0d 0a 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 ..<td><img src="
2000: 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 https://www.gaia
2010: 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e -gis.it/gaia-sin
2020: 73 2f 67 75 69 2d 70 6f 73 74 67 72 65 73 2f 67 s/gui-postgres/g
2030: 75 69 31 37 2e 70 6e 67 22 20 61 6c 74 3d 22 64 ui17.png" alt="d
2040: 69 72 65 63 74 20 70 6f 73 74 67 69 73 20 71 75 irect postgis qu
2050: 65 72 79 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 ery"></td>..</tr
2060: 3e 0d 0a 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 62 3e >..<tr>..<td><b>
2070: 34 2e 64 3c 2f 62 3e 20 74 68 65 20 72 65 61 73 4.d</b> the reas
2080: 6f 6e 20 66 6f 72 20 73 75 63 68 20 61 20 62 65 on for such a be
2090: 68 61 76 69 6f 75 72 20 69 73 20 63 6c 65 61 72 haviour is clear
20a0: 6c 79 20 73 68 6f 77 6e 20 69 6e 20 74 68 65 20 ly shown in the
20b0: 73 69 64 65 20 66 69 67 75 72 65 2e 3c 62 72 3e side figure.<br>
20c0: 0d 0a 41 20 56 69 72 74 75 61 6c 50 6f 73 74 67 ..A VirtualPostg
20d0: 72 65 73 20 54 61 62 6c 65 20 77 69 6c 6c 20 65 res Table will e
20e0: 78 70 6f 73 65 20 61 6c 6c 20 47 65 6f 6d 65 74 xpose all Geomet
20f0: 72 69 65 73 20 61 73 20 3c 62 3e 45 57 4b 42 20 ries as <b>EWKB
2100: 74 65 78 74 20 73 74 72 69 6e 67 73 3c 2f 62 3e text strings</b>
2110: 20 75 73 69 6e 67 20 61 6e 20 68 65 78 61 64 65 using an hexade
2120: 63 69 6d 61 6c 20 6e 6f 74 61 74 69 6f 6e 3b 20 cimal notation;
2130: 69 6e 20 74 68 69 73 20 63 61 73 65 20 77 65 20 in this case we
2140: 68 61 76 65 20 73 69 6d 70 6c 65 20 50 4f 49 4e have simple POIN
2150: 54 53 2c 20 61 6e 64 20 74 68 65 20 45 57 4b 42 TS, and the EWKB
2160: 20 73 74 72 69 6e 67 73 20 61 72 65 20 72 65 61 strings are rea
2170: 73 6f 6e 61 62 6c 79 20 63 6f 6d 70 61 63 74 2e sonably compact.
2180: 3c 62 72 3e 0d 0a 42 75 74 20 75 6e 68 61 70 70 <br>..But unhapp
2190: 69 6c 79 20 63 6f 6d 70 6c 65 78 20 4c 49 4e 45 ily complex LINE
21a0: 53 54 52 49 4e 47 20 6f 72 20 50 4f 4c 59 47 4f STRING or POLYGO
21b0: 4e 20 47 65 6f 6d 65 74 72 69 65 73 20 6d 61 79 N Geometries may
21c0: 20 65 61 73 69 6c 79 20 72 65 71 75 69 72 65 20 easily require
21d0: 73 65 76 65 72 61 6c 20 6d 69 6c 6c 69 6f 6e 20 several million
21e0: 63 68 61 72 61 63 74 65 72 73 2c 20 61 6e 64 20 characters, and
21f0: 74 68 69 73 20 77 69 6c 6c 20 65 61 73 69 6c 79 this will easily
2200: 20 6f 76 65 72 20 73 74 72 65 73 73 20 74 68 65 over stress the
2210: 20 47 55 49 2e 3c 62 72 3e 0d 0a 54 68 65 20 65 GUI.<br>..The e
2220: 78 65 63 75 74 69 6f 6e 20 73 70 65 65 64 20 6f xecution speed o
2230: 66 20 73 75 63 68 20 61 20 71 75 65 72 79 20 77 f such a query w
2240: 69 6c 6c 20 63 65 72 74 61 69 6e 6c 79 20 62 65 ill certainly be
2250: 20 76 65 72 79 20 73 6c 75 67 67 69 73 68 2c 20 very sluggish,
2260: 61 6e 64 20 73 6f 6d 65 20 69 6e 73 74 61 62 69 and some instabi
2270: 6c 69 74 79 20 74 72 6f 75 62 6c 65 20 63 6f 75 lity trouble cou
2280: 6c 64 20 65 76 65 6e 74 75 61 6c 6c 79 20 61 72 ld eventually ar
2290: 69 73 65 2e 3c 62 72 3e 3c 62 72 3e 3c 62 72 3e ise.<br><br><br>
22a0: 0d 0a 3c 62 3e 53 68 6f 72 74 20 63 6f 6e 63 6c ..<b>Short concl
22b0: 75 73 69 6f 6e 3c 2f 62 3e 3a 20 6e 65 76 65 72 usion</b>: never
22c0: 20 65 76 65 72 20 61 74 74 65 6d 70 74 20 74 6f ever attempt to
22d0: 20 64 69 72 65 63 74 6c 79 20 71 75 65 72 79 20 directly query
22e0: 61 20 50 6f 73 74 47 49 53 20 54 61 62 6c 65 20 a PostGIS Table
22f0: 21 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 3c 69 6d 67 !</td>..<td><img
2300: 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 src="https://ww
2310: 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 w.gaia-gis.it/ga
2320: 69 61 2d 73 69 6e 73 2f 67 75 69 2d 70 6f 73 74 ia-sins/gui-post
2330: 67 72 65 73 2f 67 75 69 31 35 2e 70 6e 67 22 20 gres/gui15.png"
2340: 61 6c 74 3d 22 64 69 72 65 63 74 20 70 6f 73 74 alt="direct post
2350: 67 69 73 20 71 75 65 72 79 22 3e 3c 2f 74 64 3e gis query"></td>
2360: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 3c ..</tr>..<tr>..<
2370: 74 64 3e 3c 62 3e 34 2e 65 3c 2f 62 3e 20 61 20 td><b>4.e</b> a
2380: 63 6f 6d 70 61 6e 69 6f 6e 20 53 70 61 74 69 61 companion Spatia
2390: 6c 20 56 69 65 77 20 69 73 20 61 6c 77 61 79 73 l View is always
23a0: 20 64 65 66 69 6e 65 64 20 66 6f 72 20 65 76 65 defined for eve
23b0: 72 79 20 50 6f 73 74 47 49 53 20 54 61 62 6c 65 ry PostGIS Table
23c0: 2c 20 61 6e 64 20 69 73 20 73 70 65 63 69 66 69 , and is specifi
23d0: 63 61 6c 6c 79 20 69 6e 74 65 6e 64 65 64 20 74 cally intended t
23e0: 6f 20 73 75 70 70 6f 72 74 20 73 61 66 65 20 61 o support safe a
23f0: 6e 64 20 74 72 6f 75 62 6c 65 20 66 72 65 65 20 nd trouble free
2400: 71 75 65 72 69 65 73 2e 3c 62 72 3e 0d 0a 54 68 queries.<br>..Th
2410: 61 74 27 73 20 6e 6f 74 20 6f 6e 6c 79 3a 20 74 at's not only: t
2420: 68 65 20 63 6f 6d 70 61 6e 69 6f 6e 20 53 70 61 he companion Spa
2430: 74 69 61 6c 20 56 69 65 77 20 77 69 6c 6c 20 74 tial View will t
2440: 61 6b 65 20 63 61 72 65 20 74 6f 20 73 69 6c 65 ake care to sile
2450: 6e 74 6c 79 20 63 6f 6e 76 65 72 74 20 62 69 6e ntly convert bin
2460: 61 72 79 20 47 65 6f 6d 65 74 72 69 65 73 20 74 ary Geometries t
2470: 6f 20 61 6e 64 20 66 72 6f 6d 20 74 68 65 20 75 o and from the u
2480: 73 75 61 6c 20 53 70 61 74 69 61 4c 69 74 65 27 sual SpatiaLite'
2490: 73 20 6f 77 6e 20 66 6f 72 6d 61 74 2c 20 74 68 s own format, th
24a0: 75 73 20 67 72 65 61 74 6c 79 20 73 69 6d 70 6c us greatly simpl
24b0: 69 66 79 69 6e 67 20 74 68 65 20 65 76 65 6e 74 ifying the event
24c0: 75 61 6c 20 77 72 69 74 69 6e 67 20 6f 66 20 63 ual writing of c
24d0: 75 73 74 6f 6d 69 7a 65 64 20 53 51 4c 20 71 75 ustomized SQL qu
24e0: 65 72 69 65 73 20 75 73 69 6e 67 20 53 70 61 74 eries using Spat
24f0: 69 61 6c 20 46 75 6e 63 74 69 6f 6e 73 2e 3c 2f ial Functions.</
2500: 74 64 3e 0d 0a 3c 74 64 3e 3c 69 6d 67 20 73 72 td>..<td><img sr
2510: 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 c="https://www.g
2520: 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d aia-gis.it/gaia-
2530: 73 69 6e 73 2f 67 75 69 2d 70 6f 73 74 67 72 65 sins/gui-postgre
2540: 73 2f 67 75 69 31 36 2e 70 6e 67 22 20 61 6c 74 s/gui16.png" alt
2550: 3d 22 69 6e 64 69 72 65 63 74 20 70 6f 73 74 67 ="indirect postg
2560: 69 73 20 71 75 65 72 79 22 3e 3c 2f 74 64 3e 0d is query"></td>.
2570: 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 3c 74 .</tr>..<tr>..<t
2580: 64 3e 3c 62 3e 34 2e 66 3c 2f 62 3e 20 74 68 65 d><b>4.f</b> the
2590: 20 63 6f 6d 70 61 6e 69 6f 6e 20 53 70 61 74 69 companion Spati
25a0: 61 6c 20 56 69 65 77 20 77 69 6c 6c 20 61 6c 77 al View will alw
25b0: 61 79 73 20 62 65 20 61 20 3c 62 3e 57 72 69 74 ays be a <b>Writ
25c0: 61 62 6c 65 20 56 69 65 77 3c 2f 62 3e 20 69 66 able View</b> if
25d0: 20 74 68 65 20 63 6f 72 72 65 73 70 6f 6e 64 69 the correspondi
25e0: 6e 67 20 50 6f 73 74 47 49 53 20 54 61 62 6c 65 ng PostGIS Table
25f0: 20 69 73 20 61 70 70 72 6f 70 72 69 61 74 65 6c is appropriatel
2600: 79 20 65 6e 61 62 6c 65 64 20 61 6e 64 20 69 66 y enabled and if
2610: 20 74 68 65 20 63 6f 6e 6e 65 63 74 69 6f 6e 20 the connection
2620: 73 75 70 70 6f 72 74 73 20 52 45 41 44 2d 57 52 supports READ-WR
2630: 49 54 45 20 6f 70 65 72 61 74 69 6f 6e 73 2e 3c ITE operations.<
2640: 62 72 3e 3c 62 72 3e 3c 62 72 3e 0d 0a 3c 62 3e br><br><br>..<b>
2650: 4e 6f 74 65 3c 2f 62 3e 3a 20 61 70 70 72 6f 70 Note</b>: approp
2660: 72 69 61 74 65 20 54 72 69 67 67 65 72 73 20 77 riate Triggers w
2670: 69 6c 6c 20 62 65 20 61 75 74 6f 6d 61 74 69 63 ill be automatic
2680: 61 6c 6c 79 20 64 65 66 69 6e 65 64 20 73 6f 20 ally defined so
2690: 74 6f 20 6c 65 74 20 74 68 65 20 53 70 61 74 69 to let the Spati
26a0: 61 6c 20 56 69 65 77 20 74 6f 20 62 65 63 6f 6d al View to becom
26b0: 65 20 61 20 57 72 69 74 61 62 6c 65 20 56 69 65 e a Writable Vie
26c0: 77 20 66 75 6c 6c 79 20 73 75 70 70 6f 72 74 69 w fully supporti
26d0: 6e 67 20 3c 62 3e 49 4e 53 45 52 54 3c 2f 62 3e ng <b>INSERT</b>
26e0: 2c 20 3c 62 3e 55 50 44 41 54 45 3c 2f 62 3e 20 , <b>UPDATE</b>
26f0: 61 6e 64 20 3c 62 3e 44 45 4c 45 54 45 3c 2f 62 and <b>DELETE</b
2700: 3e 20 6f 70 65 72 61 74 69 6f 6e 73 2e 3c 2f 74 > operations.</t
2710: 64 3e 0d 0a 3c 74 64 3e 3c 69 6d 67 20 73 72 63 d>..<td><img src
2720: 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 ="https://www.ga
2730: 69 61 2d 67 69 73 2e 69 74 2f 67 61 69 61 2d 73 ia-gis.it/gaia-s
2740: 69 6e 73 2f 67 75 69 2d 70 6f 73 74 67 72 65 73 ins/gui-postgres
2750: 2f 67 75 69 31 34 2e 70 6e 67 22 20 61 6c 74 3d /gui14.png" alt=
2760: 22 70 6f 73 74 67 69 73 20 65 64 69 74 69 6e 67 "postgis editing
2770: 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 3e 0d 0a "></td>..</tr>..
2780: 3c 74 72 3e 3c 74 64 20 63 6f 6c 73 70 61 6e 3d <tr><td colspan=
2790: 22 32 22 20 61 6c 69 67 6e 3d 22 63 65 6e 74 65 "2" align="cente
27a0: 72 22 3e 3c 68 33 3e 3c 61 20 6e 61 6d 65 3d 22 r"><h3><a name="
27b0: 61 64 64 65 6e 64 75 6d 22 3e 41 64 64 65 6e 64 addendum">Addend
27c0: 75 6d 3c 2f 61 3e 3a 20 73 70 65 63 69 61 6c 20 um</a>: special
27d0: 6e 6f 74 65 20 66 6f 72 20 57 69 6e 64 6f 77 73 note for Windows
27e0: 20 75 73 65 72 73 3c 2f 68 33 3e 3c 68 72 3e 3c users</h3><hr><
27f0: 2f 74 64 3e 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 3c /td></tr>..<tr><
2800: 74 64 20 63 6f 6c 73 70 61 6e 20 3d 20 22 32 22 td colspan = "2"
2810: 3e 0d 0a 41 6c 6c 20 70 72 65 76 69 6f 75 73 20 >..All previous
2820: 76 65 72 73 69 6f 6e 73 20 6f 66 20 74 68 65 20 versions of the
2830: 47 55 49 20 62 69 6e 61 72 69 65 73 20 72 65 6c GUI binaries rel
2840: 65 61 73 65 64 20 69 6e 20 74 68 65 20 70 61 73 eased in the pas
2850: 74 20 77 65 72 65 20 61 6c 77 61 79 73 20 62 61 t were always ba
2860: 73 65 64 20 6f 6e 20 61 20 73 69 6e 67 6c 65 20 sed on a single
2870: 6d 6f 6e 6f 6c 69 74 68 69 63 20 3c 62 3e 2e 65 monolithic <b>.e
2880: 78 65 3c 2f 62 3e 20 66 75 6c 6c 79 20 64 65 70 xe</b> fully dep
2890: 65 6e 64 69 6e 67 20 6f 6e 20 73 74 61 74 69 63 ending on static
28a0: 20 6c 69 6e 6b 61 67 65 20 61 6e 64 20 6e 6f 74 linkage and not
28b0: 20 72 65 71 75 69 72 69 6e 67 20 61 6e 79 20 44 requiring any D
28c0: 4c 4c 20 61 74 20 61 6c 6c 2e 3c 62 72 3e 3c 62 LL at all.<br><b
28d0: 72 3e 0d 0a 55 6e 68 61 70 70 69 6c 79 20 74 68 r>..Unhappily th
28e0: 69 73 20 69 73 20 6e 6f 20 6c 6f 6e 67 65 72 20 is is no longer
28f0: 70 6f 73 73 69 62 6c 65 2c 20 62 65 63 61 75 73 possible, becaus
2900: 65 20 3c 62 3e 6c 69 62 70 71 3c 2f 62 3e 20 28 e <b>libpq</b> (
2910: 3c 69 3e 74 68 65 20 50 6f 73 74 67 72 65 53 51 <i>the PostgreSQ
2920: 4c 20 6f 77 6e 20 63 6c 69 65 6e 74 20 6c 69 62 L own client lib
2930: 72 61 72 79 3c 2f 69 3e 29 20 69 73 20 75 6e 69 rary</i>) is uni
2940: 71 75 65 6c 79 20 61 76 61 69 6c 61 62 6c 65 20 quely available
2950: 61 73 20 61 20 44 4c 4c 20 6f 6e 20 57 69 6e 64 as a DLL on Wind
2960: 6f 77 73 2c 20 61 6e 64 20 74 68 65 72 65 20 69 ows, and there i
2970: 73 20 61 62 73 6f 6c 75 74 65 6c 79 20 6e 6f 20 s absolutely no
2980: 77 61 79 20 74 6f 20 62 75 69 6c 64 20 61 20 63 way to build a c
2990: 6f 72 72 65 73 70 6f 6e 64 69 6e 67 20 73 74 61 orresponding sta
29a0: 74 69 63 20 6c 69 62 72 61 72 79 2e 3c 62 72 3e tic library.<br>
29b0: 0d 0a 4d 6f 72 65 20 70 72 65 63 69 73 65 6c 79 ..More precisely
29c0: 3a 20 61 20 73 74 61 74 69 63 20 6c 69 62 72 61 : a static libra
29d0: 72 79 20 69 73 20 61 63 74 75 61 6c 6c 79 20 62 ry is actually b
29e0: 75 69 6c 74 20 77 68 65 6e 20 63 6f 6d 70 69 6c uilt when compil
29f0: 69 6e 67 20 50 6f 73 74 67 72 65 53 51 4c 2c 20 ing PostgreSQL,
2a00: 62 75 74 20 6f 6e 20 57 69 6e 64 6f 77 73 20 69 but on Windows i
2a10: 74 20 73 69 6d 70 6c 79 20 69 73 20 61 20 73 74 t simply is a st
2a20: 75 62 20 73 74 69 6c 6c 20 72 65 71 75 69 72 69 ub still requiri
2a30: 6e 67 20 74 6f 20 6c 6f 61 64 20 74 68 65 20 44 ng to load the D
2a40: 4c 4c 20 61 74 20 72 75 6e 20 74 69 6d 65 2e 3c LL at run time.<
2a50: 62 72 3e 3c 62 72 3e 3c 62 72 3e 0d 0a 41 6c 6c br><br><br>..All
2a60: 20 74 68 69 73 20 63 6f 6e 73 69 64 65 72 65 64 this considered
2a70: 2c 20 6e 6f 77 20 3c 62 3e 73 70 61 74 69 61 6c , now <b>spatial
2a80: 69 74 65 5f 67 75 69 2e 65 78 65 3c 2f 62 3e 20 ite_gui.exe</b>
2a90: 69 73 20 6b 69 6e 64 20 6f 66 20 61 6e 20 68 79 is kind of an hy
2aa0: 62 72 69 64 3b 20 69 74 20 6d 6f 73 74 6c 79 20 brid; it mostly
2ab0: 64 65 70 65 6e 64 73 20 6f 6e 20 73 74 61 74 69 depends on stati
2ac0: 63 20 6c 69 6e 6b 61 67 65 2c 20 65 78 63 65 70 c linkage, excep
2ad0: 74 20 74 68 61 6e 20 66 6f 72 20 3c 62 3e 6c 69 t than for <b>li
2ae0: 62 70 71 2e 64 6c 6c 3c 2f 62 3e 2e 3c 62 72 3e bpq.dll</b>.<br>
2af0: 0d 0a 53 6f 20 61 20 72 65 61 73 6f 6e 61 62 6c ..So a reasonabl
2b00: 65 20 63 6f 6d 70 72 6f 6d 69 73 65 20 68 61 73 e compromise has
2b10: 20 62 65 65 6e 20 61 64 6f 70 74 65 64 20 69 6e been adopted in
2b20: 20 6f 72 64 65 72 20 74 6f 20 6d 69 74 69 67 61 order to mitiga
2b30: 74 65 20 74 68 65 20 6e 65 67 61 74 69 76 65 20 te the negative
2b40: 69 6d 70 61 63 74 20 6f 66 20 73 75 63 68 20 61 impact of such a
2b50: 6e 20 6f 64 64 20 6c 61 79 6f 75 74 3a 0d 0a 3c n odd layout:..<
2b60: 75 6c 3e 0d 0a 3c 6c 69 3e 74 68 65 20 62 69 6e ul>..<li>the bin
2b70: 61 72 69 65 73 20 66 6f 72 20 57 69 6e 64 6f 77 aries for Window
2b80: 73 20 70 6c 61 74 66 6f 72 6d 73 20 77 69 6c 6c s platforms will
2b90: 20 62 65 20 62 75 69 6c 74 20 69 6e 20 73 75 63 be built in suc
2ba0: 68 20 61 20 77 61 79 20 74 68 61 74 20 3c 62 3e h a way that <b>
2bb0: 6c 69 62 70 71 2e 64 6c 6c 3c 2f 62 3e 20 77 69 libpq.dll</b> wi
2bc0: 6c 6c 20 73 75 70 70 6f 72 74 20 77 68 61 74 20 ll support what
2bd0: 69 73 20 67 65 6e 65 72 61 6c 6c 79 20 6b 6e 6f is generally kno
2be0: 77 6e 20 61 73 20 3c 62 3e 6c 61 74 65 20 62 69 wn as <b>late bi
2bf0: 6e 64 69 6e 67 3c 2f 62 3e 20 61 6b 61 20 3c 62 nding</b> aka <b
2c00: 3e 64 65 66 65 72 72 65 64 20 62 69 6e 64 69 6e >deferred bindin
2c10: 67 3c 2f 62 3e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 g</b>.</li>..<li
2c20: 3e 74 68 69 73 20 77 61 79 20 74 68 65 20 6d 61 >this way the ma
2c30: 69 6e 20 63 6f 72 65 20 6f 66 20 74 68 65 20 47 in core of the G
2c40: 55 49 20 77 69 6c 6c 20 63 6f 6e 74 69 6e 75 65 UI will continue
2c50: 20 74 6f 20 6e 69 63 65 6c 79 20 77 6f 72 6b 20 to nicely work
2c60: 65 76 65 6e 20 77 68 65 6e 20 3c 62 3e 6c 69 62 even when <b>lib
2c70: 70 71 2e 64 6c 6c 3c 2f 62 3e 20 68 61 73 6e 27 pq.dll</b> hasn'
2c80: 74 20 79 65 74 20 62 65 65 6e 20 6c 6f 61 64 65 t yet been loade
2c90: 64 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 3c 62 3e d.</li>..<li><b>
2ca0: 6c 69 62 70 71 2e 64 6c 6c 3c 2f 62 3e 20 77 69 libpq.dll</b> wi
2cb0: 6c 6c 20 62 65 20 61 63 74 75 61 6c 6c 79 20 6c ll be actually l
2cc0: 6f 61 64 65 64 20 6f 6e 6c 79 20 77 68 65 6e 20 oaded only when
2cd0: 73 74 72 69 63 74 6c 79 20 6e 65 65 64 65 64 2c strictly needed,
2ce0: 20 69 2e 65 2e 20 77 68 65 6e 20 74 68 65 20 75 i.e. when the u
2cf0: 73 65 72 20 72 65 71 75 69 72 65 73 20 74 6f 20 ser requires to
2d00: 65 73 74 61 62 6c 69 73 68 20 61 20 50 6f 73 74 establish a Post
2d10: 67 72 65 53 51 4c 20 63 6f 6e 6e 65 63 74 69 6f greSQL connectio
2d20: 6e 2e 3c 2f 6c 69 3e 0d 0a 3c 6c 69 3e 69 66 20 n.</li>..<li>if
2d30: 74 68 65 20 44 4c 4c 20 66 61 69 6c 73 20 74 6f the DLL fails to
2d40: 20 62 65 20 6c 6f 61 64 65 64 20 66 6f 72 20 61 be loaded for a
2d50: 6e 79 20 72 65 61 73 6f 6e 2c 20 74 68 65 6e 20 ny reason, then
2d60: 74 68 65 20 47 55 49 20 77 69 6c 6c 20 63 6f 6e the GUI will con
2d70: 74 69 6e 75 65 20 75 6e 61 66 66 65 63 74 65 64 tinue unaffected
2d80: 2c 20 65 78 63 65 70 74 20 66 6f 72 20 74 68 61 , except for tha
2d90: 74 20 74 68 65 20 50 6f 73 74 67 72 65 53 51 4c t the PostgreSQL
2da0: 20 73 75 70 70 6f 72 74 20 77 69 6c 6c 20 63 6f support will co
2db0: 6e 74 69 6e 75 65 20 74 6f 20 62 65 20 6b 65 70 ntinue to be kep
2dc0: 74 20 64 69 73 61 62 6c 65 64 2e 3c 2f 6c 69 3e t disabled.</li>
2dd0: 0d 0a 3c 2f 75 6c 3e 0d 0a 3c 2f 74 64 3e 3c 2f ..</ul>..</td></
2de0: 74 72 3e 0d 0a 3c 74 72 3e 3c 74 64 20 63 6f 6c tr>..<tr><td col
2df0: 73 70 61 6e 3d 22 32 22 20 61 6c 69 67 6e 3d 22 span="2" align="
2e00: 63 65 6e 74 65 72 22 3e 3c 68 33 3e 48 6f 77 20 center"><h3>How
2e10: 69 74 20 70 72 61 63 74 69 63 61 6c 6c 79 20 77 it practically w
2e20: 6f 72 6b 73 3c 2f 68 33 3c 2f 74 64 3e 3c 2f 74 orks</h3</td></t
2e30: 72 3e 0d 0a 3c 74 72 3e 0d 0a 3c 74 64 3e 3c 62 r>..<tr>..<td><b
2e40: 3e 41 2e 31 3c 2f 62 3e 20 77 68 65 6e 20 72 65 >A.1</b> when re
2e50: 71 75 69 72 65 64 20 74 6f 20 61 63 63 65 73 73 quired to access
2e60: 20 50 6f 73 74 67 72 65 53 51 4c 20 66 6f 72 20 PostgreSQL for
2e70: 74 68 65 20 66 69 72 73 74 20 74 69 6d 65 2c 20 the first time,
2e80: 74 68 65 20 47 55 49 20 77 69 6c 6c 20 61 63 74 the GUI will act
2e90: 75 61 6c 6c 79 20 61 74 74 65 6d 70 74 20 74 6f ually attempt to
2ea0: 20 6c 6f 61 64 20 3c 62 3e 6c 69 62 70 71 2e 64 load <b>libpq.d
2eb0: 6c 6c 3c 2f 62 3e 3a 0d 0a 3c 75 6c 3e 0d 0a 3c ll</b>:..<ul>..<
2ec0: 6c 69 3e 61 20 66 69 72 73 74 20 61 75 74 6f 6d li>a first autom
2ed0: 61 74 69 63 20 61 74 74 65 6d 70 74 20 77 69 6c atic attempt wil
2ee0: 6c 20 62 65 20 70 65 72 66 6f 72 6d 65 64 20 61 l be performed a
2ef0: 63 63 6f 72 64 69 6e 67 6c 79 20 74 6f 20 74 68 ccordingly to th
2f00: 65 20 73 74 61 6e 64 61 72 64 20 70 6c 61 74 66 e standard platf
2f10: 6f 72 6d 20 72 75 6c 65 73 2e 3c 62 72 3e 0d 0a orm rules.<br>..
2f20: 3c 62 3e 48 69 6e 74 3c 2f 62 3e 3a 20 6f 6e 20 <b>Hint</b>: on
2f30: 57 69 6e 64 6f 77 73 20 69 74 20 75 73 75 61 6c Windows it usual
2f40: 6c 79 20 69 73 20 61 20 76 65 72 79 20 6e 69 63 ly is a very nic
2f50: 65 20 73 6f 6c 75 74 69 6f 6e 20 74 6f 20 70 6c e solution to pl
2f60: 61 63 65 20 74 68 65 20 44 4c 4c 20 69 6e 20 74 ace the DLL in t
2f70: 68 65 20 73 61 6d 65 20 66 6f 6c 64 65 72 20 77 he same folder w
2f80: 68 65 72 65 20 74 68 65 20 47 55 49 20 65 78 65 here the GUI exe
2f90: 63 75 74 61 62 6c 65 20 69 73 2e 3c 2f 6c 69 3e cutable is.</li>
2fa0: 0d 0a 3c 6c 69 3e 69 66 20 73 75 63 68 20 61 6e ..<li>if such an
2fb0: 20 61 74 74 65 6d 70 74 20 66 61 69 6c 73 2c 20 attempt fails,
2fc0: 74 68 65 6e 20 74 68 65 20 75 73 65 72 20 69 73 then the user is
2fd0: 20 61 73 6b 65 64 20 66 6f 72 20 6d 61 6e 75 61 asked for manua
2fe0: 6c 6c 79 20 73 65 61 72 63 68 69 6e 67 20 3c 62 lly searching <b
2ff0: 3e 6c 69 62 70 71 2e 64 6c 6c 3c 2f 62 3e 2c 20 >libpq.dll</b>,
3000: 61 73 20 73 68 6f 77 6e 20 62 79 20 74 68 65 20 as shown by the
3010: 73 69 64 65 20 66 69 67 75 72 65 2e 3c 2f 6c 69 side figure.</li
3020: 3e 0d 0a 3c 2f 75 6c 3e 3c 2f 74 64 3e 0d 0a 3c >..</ul></td>..<
3030: 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 74 td><img src="htt
3040: 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 69 ps://www.gaia-gi
3050: 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f 67 s.it/gaia-sins/g
3060: 75 69 2d 70 6f 73 74 67 72 65 73 2f 6c 69 62 70 ui-postgres/libp
3070: 71 2d 64 65 66 65 72 72 65 64 31 2e 70 6e 67 22 q-deferred1.png"
3080: 20 61 6c 74 3d 22 6c 69 62 70 71 20 6e 6f 74 20 alt="libpq not
3090: 66 6f 75 6e 64 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f found"></td>..</
30a0: 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 3c 74 64 3e 3c tr>..<tr>..<td><
30b0: 62 3e 41 2e 32 3c 2f 62 3e 20 6e 6f 77 20 79 6f b>A.2</b> now yo
30c0: 75 20 63 61 6e 20 75 73 65 20 74 68 65 20 73 74 u can use the st
30d0: 61 6e 64 61 72 64 20 46 69 6c 65 20 53 65 6c 65 andard File Sele
30e0: 63 74 69 6f 6e 20 64 69 61 6c 6f 67 20 69 6e 20 ction dialog in
30f0: 6f 72 64 65 72 20 74 6f 20 6c 6f 63 61 74 65 20 order to locate
3100: 61 6e 64 20 6f 70 65 6e 20 3c 62 3e 6c 69 62 70 and open <b>libp
3110: 71 2e 64 6c 6c 3c 2f 62 3e 2e 3c 62 72 3e 3c 62 q.dll</b>.<br><b
3120: 72 3e 3c 62 72 3e 0d 0a 3c 62 3e 57 61 72 6e 69 r><br>..<b>Warni
3130: 6e 67 3c 2f 62 3e 3a 20 61 20 76 65 72 79 20 63 ng</b>: a very c
3140: 6f 6d 6d 6f 6e 20 70 69 74 66 61 6c 6c 20 69 73 ommon pitfall is
3150: 20 61 74 74 65 6d 70 74 69 6e 67 20 74 6f 20 6c attempting to l
3160: 6f 61 64 20 61 20 33 32 20 62 69 74 20 44 4c 4c oad a 32 bit DLL
3170: 20 6f 6e 20 61 20 36 34 20 62 69 74 20 47 55 49 on a 64 bit GUI
3180: 2c 20 6f 72 20 74 68 65 20 6f 70 70 6f 73 69 74 , or the opposit
3190: 65 2e 3c 62 72 3e 0d 0a 54 68 65 20 63 6f 64 65 e.<br>..The code
31a0: 20 6d 6f 64 65 6c 20 6f 66 20 62 6f 74 68 20 74 model of both t
31b0: 68 65 20 65 78 65 63 75 74 61 62 6c 65 20 61 6e he executable an
31c0: 64 20 74 68 65 20 44 4c 4c 20 6d 75 73 74 20 6e d the DLL must n
31d0: 65 63 65 73 73 61 72 69 6c 79 20 6d 61 74 63 68 ecessarily match
31e0: 2e 3c 2f 74 64 3e 0d 0a 3c 74 64 3e 3c 69 6d 67 .</td>..<td><img
31f0: 20 73 72 63 3d 22 68 74 74 70 73 3a 2f 2f 77 77 src="https://ww
3200: 77 2e 67 61 69 61 2d 67 69 73 2e 69 74 2f 67 61 w.gaia-gis.it/ga
3210: 69 61 2d 73 69 6e 73 2f 67 75 69 2d 70 6f 73 74 ia-sins/gui-post
3220: 67 72 65 73 2f 6c 69 62 70 71 2d 64 65 66 65 72 gres/libpq-defer
3230: 72 65 64 32 2e 70 6e 67 22 20 61 6c 74 3d 22 6c red2.png" alt="l
3240: 69 62 70 71 20 6f 70 65 6e 22 3e 3c 2f 74 64 3e ibpq open"></td>
3250: 0d 0a 3c 2f 74 72 3e 0d 0a 3c 74 72 3e 0d 0a 3c ..</tr>..<tr>..<
3260: 74 64 3e 3c 62 3e 41 2e 33 3c 2f 62 3e 20 69 66 td><b>A.3</b> if
3270: 20 3c 62 3e 6c 69 62 70 71 2e 64 6c 6c 3c 2f 62 <b>libpq.dll</b
3280: 3e 20 68 61 73 20 62 65 65 6e 20 73 75 63 63 65 > has been succe
3290: 73 73 66 75 6c 6c 79 20 6c 6f 61 64 65 64 20 61 ssfully loaded a
32a0: 20 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 20 6d 65 confirmation me
32b0: 73 73 61 67 65 20 77 69 6c 6c 20 62 65 20 73 68 ssage will be sh
32c0: 6f 77 6e 2e 3c 62 72 3e 0d 0a 54 68 65 20 61 73 own.<br>..The as
32d0: 73 6f 63 69 61 74 69 6f 6e 20 62 65 74 77 65 65 sociation betwee
32e0: 6e 20 74 68 65 20 47 55 49 20 61 6e 64 20 74 68 n the GUI and th
32f0: 65 20 44 4c 4c 20 77 69 6c 6c 20 62 65 20 70 65 e DLL will be pe
3300: 72 6d 61 6e 65 6e 74 6c 79 20 72 65 67 69 73 74 rmanently regist
3310: 65 72 65 64 2c 20 73 6f 20 74 6f 20 61 6c 6c 6f ered, so to allo
3320: 77 20 66 6f 72 20 61 6e 20 61 75 74 6f 6d 61 74 w for an automat
3330: 69 63 20 6c 6f 61 64 69 6e 67 20 69 6e 20 61 6c ic loading in al
3340: 6c 20 74 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 l the following
3350: 73 65 73 73 69 6f 6e 73 2e 3c 2f 74 64 3e 0d 0a sessions.</td>..
3360: 3c 74 64 3e 3c 69 6d 67 20 73 72 63 3d 22 68 74 <td><img src="ht
3370: 74 70 73 3a 2f 2f 77 77 77 2e 67 61 69 61 2d 67 tps://www.gaia-g
3380: 69 73 2e 69 74 2f 67 61 69 61 2d 73 69 6e 73 2f is.it/gaia-sins/
3390: 67 75 69 2d 70 6f 73 74 67 72 65 73 2f 6c 69 62 gui-postgres/lib
33a0: 70 71 2d 64 65 66 65 72 72 65 64 33 2e 70 6e 67 pq-deferred3.png
33b0: 22 20 61 6c 74 3d 22 6c 69 62 70 71 20 6c 6f 61 " alt="libpq loa
33c0: 64 65 64 22 3e 3c 2f 74 64 3e 0d 0a 3c 2f 74 72 ded"></td>..</tr
33d0: 3e 0d 0a 3c 2f 74 61 62 6c 65 3e 0d 0a 0d 0a 0d >..</table>.....
33e0: 0a 42 61 63 6b 20 74 6f 20 3c 61 20 68 72 65 66 .Back to <a href
33f0: 3d 22 68 74 74 70 73 3a 2f 2f 77 77 77 2e 67 61 ="https://www.ga
3400: 69 61 2d 67 69 73 2e 69 74 2f 66 6f 73 73 69 6c ia-gis.it/fossil
3410: 2f 73 70 61 74 69 61 6c 69 74 65 5f 67 75 69 2f /spatialite_gui/
3420: 77 69 6b 69 3f 6e 61 6d 65 3d 73 70 61 74 69 61 wiki?name=spatia
3430: 6c 69 74 65 2d 67 75 69 22 3e 6d 61 69 6e 20 57 lite-gui">main W
3440: 69 6b 69 20 70 61 67 65 3c 2f 61 3e 0a 5a 20 32 iki page</a>.Z 2
3450: 35 34 62 34 64 36 35 61 34 65 65 30 31 37 37 63 54b4d65a4ee0177c
3460: 65 35 36 64 61 61 31 39 66 30 32 33 62 31 65 0a e56daa19f023b1e.