Hallo Jörg,

dann habe ich drei Fragen:

1. sollte ich zuerst PostGIS als auch PostgreSQL mit 'sudo apt purge
   ...' löschen?
2. ist es dann sinnvoller vom PostgreSQL-Repo statt vom Ubuntu-Repo zu
   installieren (https://www.postgresql.org/download/linux/ubuntu/)?
3. gibt es überhaupt ein aktuelles PostGIS-Repo - mit den Links auf
   https://postgis.net/install/ kann ich nix richtiges anfangen?

Der Micha



Am 10.05.22 um 09:25 schrieb Jörg Thomsen (WhereGroup):
Moin,

ich finde die Einträge zu PG sehen alle merkwürdig aus, da fehlen
überall die Versionsnummern und Kommentare. So wäre es besser:
"(postgis_sfcgal,2.5.1,""PostGIS SFCGAL functions"")"
"(postgis,2.5.1,""PostGIS geometry, geography, and raster spatial
types and functions"")"

Deutet darauf hin, dass bei der Installation was schief gelaufen ist.

Gruß, Jörg



Am 10.05.22 um 09:12 schrieb Keine Werbung:
Hallo Daniel,

danke für den Tip. Bei mir kommt folgende Liste, aber was fange ich
jetzt mit dieser Information an:

"(intarray,1.2,""functions, operators, and index support for 1-D arrays
of integers"")"
"(postgis_raster,,)"
"(amcheck,1.2,""functions for verifying relation integrity"")"
"(sslinfo,1.2,""information about SSL certificates"")"
"(tsm_system_time,1.0,""TABLESAMPLE method which accepts time in
milliseconds as a limit"")"
"(hstore,1.6,""data type for storing sets of (key, value) pairs"")"
"(seg,1.3,""data type for representing line segments or floating-point
intervals"")"
"(pgrowlocks,1.2,""show row-level locking information"")"
"(address_standardizer_data_us,,)"
"(postgis_sfcgal,,)"
"(dblink,1.2,""connect to other PostgreSQL databases from within a
database"")"
"(postgis_topology,,)"
"(file_fdw,1.0,""foreign-data wrapper for flat file access"")"
"(fuzzystrmatch,1.1,""determine similarities and distance between
strings"")"
"(dict_xsyn,1.0,""text search dictionary template for extended synonym
processing"")"
"(bloom,1.0,""bloom access method - signature file based index"")"
"(pg_trgm,1.4,""text similarity measurement and index searching based on
trigrams"")"
"(pg_prewarm,1.2,""prewarm relation data"")"
"(xml2,1.1,""XPath querying and XSLT"")"
"(dict_int,1.0,""text search dictionary template for integers"")"
"(address_standardizer,,)"
"(pgcrypto,1.3,""cryptographic functions"")"
"(pageinspect,1.7,""inspect the contents of database pages at a low
level"")"
"(autoinc,1.0,""functions for autoincrementing fields"")"
"(pg_visibility,1.2,""examine the visibility map (VM) and page-level
visibility info"")"
"(cube,1.4,""data type for multidimensional cubes"")"
"(btree_gin,1.3,""support for indexing common datatypes in GIN"")"
"(intagg,1.1,""integer aggregator and enumerator (obsolete)"")"
"(plpgsql,1.0,""PL/pgSQL procedural language"")"
"(adminpack,2.0,""administrative functions for PostgreSQL"")"
"(refint,1.0,""functions for implementing referential integrity
(obsolete)"")"
"(ltree,1.1,""data type for hierarchical tree-like structures"")"
"(pgstattuple,1.5,""show tuple-level statistics"")"
"(unaccent,1.1,""text search dictionary that removes accents"")"
"(lo,1.1,""Large Object maintenance"")"
"(tcn,1.0,""Triggered change notifications"")"
"(tsm_system_rows,1.0,""TABLESAMPLE method which accepts number of rows
as a limit"")"
"(insert_username,1.0,""functions for tracking who changed a table"")"
"(pg_freespacemap,1.2,""examine the free space map (FSM)"")"
"(earthdistance,1.1,""calculate great-circle distances on the surface of
the Earth"")"
"(postgres_fdw,1.0,""foreign-data wrapper for remote PostgreSQL
servers"")"
"(isn,1.2,""data types for international product numbering standards"")"
"(citext,1.6,""data type for case-insensitive character strings"")"
"(uuid-ossp,1.1,""generate universally unique identifiers (UUIDs)"")"
"(pg_stat_statements,1.7,""track execution statistics of all SQL
statements executed"")"
"(postgis,,)"
"(tablefunc,1.0,""functions that manipulate whole tables, including
crosstab"")"
"(moddatetime,1.0,""functions for tracking last modification time"")"
"(btree_gist,1.5,""support for indexing common datatypes in GiST"")"
"(postgis_tiger_geocoder,,)"
"(pg_buffercache,1.3,""examine the shared buffer cache"")"

Der Micha


Am 10.05.22 um 08:26 schrieb Daniel Grohmann:
Hallo Micha,

was bekommst du denn als Ergebnis zurück, wenn du in deiner DB ein
"SELECT pg_available_extensions();" absetzt?
Ich bekomme eine Liste aller installierter Extensions zurück, s.
Anhang.

Gruß Daniel

--
Landeshauptstadt Magdeburg
Fachbereich Vermessungsamt und Baurecht
Stadtvermessungsamt
Team Geodaten

An der Steinkuhle 6, 39128 Magdeburg

Tel.: +49 (0) 391 540 5150
Fax.: +49 (0) 391 540 5219
Email: daniel.grohm...@va.magdeburg.de
http://www.magdeburg.de/




Lars Roskoden <dezent...@web.de> schrieb am 09.05.2022 um 17:01:
Hi Felix,

leider klappt

CREATE EXTENSION postgis VERSION '3.0.0';

auch gar nicht.

Mit den Links komme ich auch gar nicht klar...

Der Micha


Am 06.05.22 um 23:09 schrieb Felix Kunde:
Nabend,

schau mal welche Versionen von PostGIS installiert sind unter
pg_available_extensions
(https://www.postgresql.org/docs/14/view-pg-available-extensions.html).
Du kannst dann beim CREATE EXTENSION Befehl auch die Version angeben
(https://www.postgresql.org/docs/current/sql-createextension.html).
Also z.B. CREATE EXTENSION postgis VERSION '3.2.1';
Aber eigentlich müsste es eine default Version geben, so dass auch
nur CREATE EXTENSION postgis klappen müsste.
Vielleicht ist es ja auch nicht richtig installiert...

lg Felix



Gesendet: Freitag, 06. Mai 2022 um 21:26 Uhr
Von: "Keine Werbung" <dezent...@web.de>
An: fossgis-talk-liste@fossgis.de
Betreff: [FOSSGIS-Talk] Zweiter Versuch: PostGIS in PostgreSQL
aktivieren
Hallo Freunde,

ich habe mir von unserem Admin eine PostgreSQL-DB auf einem
Ubuntu-Server (20.04.4 LTS - focal) plus PostGIS installieren
lassen.
Mittels pgAdmin kann ich die DB auch ansprechen. Aber ich kann
PostGIS
mittels SQL-Befehl '|CREATE EXTENSION postgis;|' in pgAdmin nicht
aktivieren, wie ich es von meiner lokalen DB auf localhost gewohnt
bin.
Fehlermeldung: ERROR: version to install must be specified // SQL
state:
22023

Ich kann via ssh auf den Server zugreifen und nur EINE installierte
Version PostGIS (3.0) entdecken.

Bevor ich hier wild "eigenmächtig" rumprobiere, bitte ich um Eure
fachkundige Hilfestellung.

Der Micha
--
....................................................................
FOSSGIS Veranstaltungen
https://www.fossgis.de/news/fossgis-events/
FOSSGIS e.V, der Verein zur Förderung von Freier Software aus dem
GIS-Bereich und Freier Geodaten!
https://www.fossgis.de/[https://www.fossgis.de/]
https://twitter.com/FOSSGIS_Verein

____________________________________________________________________
FOSSGIS-Talk-Liste mailing list
FOSSGIS-Talk-Liste@fossgis.de

https://lists.fossgis.de/mailman/listinfo/fossgis-talk-liste[https://lists.fossgis.de/mailman/listinfo/fossgis-talk-liste]





--
....................................................................
FOSSGIS Veranstaltungen
https://www.fossgis.de/news/fossgis-events/

FOSSGIS e.V, der Verein zur Förderung von Freier Software aus dem
GIS-Bereich und Freier Geodaten!
https://www.fossgis.de/             https://twitter.com/FOSSGIS_Verein

____________________________________________________________________
FOSSGIS-Talk-Liste mailing list
FOSSGIS-Talk-Liste@fossgis.de
https://lists.fossgis.de/mailman/listinfo/fossgis-talk-liste

Antwort per Email an