Request to Install Hstore In osmosisci_pgsql06
Hi, Can somebody with superuser access to PostgreSQL please install the hstore.sql contrib module into the osmosisci_pgsql06 database? I need hstore support for the latest Osmosis "simple" schema. Thanks, Brett
Brett Henderson <brett@bretth.com> wrote:
Can somebody with superuser access to PostgreSQL please install the hstore.sql contrib module into the osmosisci_pgsql06 database?
I'm quite shure taht this would not need superuser access psql:/usr/share/postgresql/8.3/contrib/hstore-new.sql:13: ERROR: type "hstore" already exists Regards Sven -- "We don't know the OS that God uses, but the Vatican uses Linux" (Sister Judith Zoebelein, Vatican Webmaster) /me is giggls@ircnet, http://sven.gegg.us/ on the Web
Hmm, I got a lot of errors saying something like a C function required superuser access. I was trying to use the hstore.sql, not hstore-new.sql. I'll try again this evening and see how I go. 2010/8/23 Sven Geggus <lists@fuchsschwanzdomain.de>
Brett Henderson <brett@bretth.com> wrote:
Can somebody with superuser access to PostgreSQL please install the hstore.sql contrib module into the osmosisci_pgsql06 database?
I'm quite shure taht this would not need superuser access
psql:/usr/share/postgresql/8.3/contrib/hstore-new.sql:13: ERROR: type "hstore" already exists
Regards
Sven
I've tried to run hstore.sql again and received the output listed below. I can't run the hstore-new.sql either because it fails due to the hstore type already existing and refuses to proceed further. I don't think I need any special hstore functionality, the normal 8.3 version should be sufficient. Can somebody please run the original hstore.sql? Hopefully that will be enough to get things working. osmosisci@gauss:/osm/osmosis-continuous-integration/database/install$ psql -f /usr/share/postgresql/8.3/contrib/hstore.sql osmosisci_pgsql06 SET psql:/usr/share/postgresql/8.3/contrib/hstore.sql:6: ERROR: type "hstore" already exists psql:/usr/share/postgresql/8.3/contrib/hstore.sql:11: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:16: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:23: ERROR: function hstore_in(cstring) does not exist psql:/usr/share/postgresql/8.3/contrib/hstore.sql:28: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:34: ERROR: type "hstore" is only a shell psql:/usr/share/postgresql/8.3/contrib/hstore.sql:39: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:44: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:52: ERROR: type "hstore" is only a shell psql:/usr/share/postgresql/8.3/contrib/hstore.sql:57: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:62: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:67: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:72: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:78: ERROR: type "hstore" is only a shell psql:/usr/share/postgresql/8.3/contrib/hstore.sql:83: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:88: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:97: ERROR: type "hstore" is only a shell psql:/usr/share/postgresql/8.3/contrib/hstore.sql:106: ERROR: type "hstore" is only a shell psql:/usr/share/postgresql/8.3/contrib/hstore.sql:116: ERROR: type "hstore" is only a shell psql:/usr/share/postgresql/8.3/contrib/hstore.sql:125: ERROR: type "hstore" is only a shell psql:/usr/share/postgresql/8.3/contrib/hstore.sql:130: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:136: ERROR: function tconvert(text, text) does not exist psql:/usr/share/postgresql/8.3/contrib/hstore.sql:141: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:146: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:151: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:156: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:163: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:169: ERROR: type "ghstore" already exists psql:/usr/share/postgresql/8.3/contrib/hstore.sql:174: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:179: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:185: ERROR: function ghstore_in(cstring) does not exist psql:/usr/share/postgresql/8.3/contrib/hstore.sql:190: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:195: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:200: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:205: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:210: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:215: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:220: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:238: ERROR: must be superuser to create an operator class psql:/usr/share/postgresql/8.3/contrib/hstore.sql:245: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:250: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:255: ERROR: permission denied for language c psql:/usr/share/postgresql/8.3/contrib/hstore.sql:266: ERROR: must be superuser to create an operator class On Tue, Aug 24, 2010 at 10:34 AM, Brett Henderson <brett@bretth.com> wrote:
Hmm, I got a lot of errors saying something like a C function required superuser access. I was trying to use the hstore.sql, not hstore-new.sql. I'll try again this evening and see how I go.
2010/8/23 Sven Geggus <lists@fuchsschwanzdomain.de>
Brett Henderson <brett@bretth.com> wrote:
Can somebody with superuser access to PostgreSQL please install the hstore.sql contrib module into the osmosisci_pgsql06 database?
I'm quite shure taht this would not need superuser access
psql:/usr/share/postgresql/8.3/contrib/hstore-new.sql:13: ERROR: type "hstore" already exists
Regards
Sven
Brett Henderson <brett@bretth.com> wrote:
I've tried to run hstore.sql again and received the output listed below. I can't run the hstore-new.sql either because it fails due to the hstore type already existing and refuses to proceed further.
This is rougly the same thing that I encountered wehn trying to activate hstore-new on your database. The SQL script just complained about hstore beeing already there. So I'm afraid I can't help you with this particular database. I can however set up a new database with hstore support if you like. Sven -- Das Internet ist kein rechtsfreier Raum, das Internet ist aber auch kein bürgerrechtsfreier Raum. (Wolfgang Wieland Bündnis 90/Die Grünen) /me is giggls@ircnet, http://sven.gegg.us/ on the Web
2010/8/24 Sven Geggus <lists@fuchsschwanzdomain.de>
Brett Henderson <brett@bretth.com> wrote:
I've tried to run hstore.sql again and received the output listed below. I can't run the hstore-new.sql either because it fails due to the hstore type already existing and refuses to proceed further.
This is rougly the same thing that I encountered wehn trying to activate hstore-new on your database. The SQL script just complained about hstore beeing already there.
Can you try running hstore.sql instead of hstore-new.sql? It will throw a couple of errors due to hstore already being defined, but the remaining steps to create functions should work. The hstore.sql doesn't rollback on error like hstore-new.sql.
So I'm afraid I can't help you with this particular database. I can however set up a new database with hstore support if you like.
There's no important data in the database, so we can drop and re-create the database. It needs both postgis and hstore support. Brett
Brett Henderson <brett@bretth.com> wrote:
Can you try running hstore.sql instead of hstore-new.sql?
I do not think this is a good idea. The old hstore code is mostly obsolete now. hstore-new is the new code to be incudluded in the upcoming 9.0 release.
There's no important data in the database, so we can drop and re-create the database. It needs both postgis and hstore support.
In this case I would suggest to recreate your database with postgis ans hstore-new support. Are you OK with this? Sven -- "Das ist halt der Unterschied: Unix ist ein Betriebssystem mit Tradition, die anderen sind einfach von sich aus unlogisch." (Anselm Lingnau in de.comp.os.unix.discussion) /me ist giggls@ircnet, http://sven.gegg.us/ im WWW
2010/8/25 Sven Geggus <lists@fuchsschwanzdomain.de>
Brett Henderson <brett@bretth.com> wrote:
Can you try running hstore.sql instead of hstore-new.sql?
I do not think this is a good idea. The old hstore code is mostly obsolete now. hstore-new is the new code to be incudluded in the upcoming 9.0 release.
I have made Osmosis compatible with standard 8.3 features to allow it to be used by a greater number of users, but it should work just fine with the newer hstore implementation.
There's no important data in the database, so we can drop and re-create the database. It needs both postgis and hstore support.
In this case I would suggest to recreate your database with postgis ans hstore-new support. Are you OK with this?
Yep, that's fine. Thanks for the help. Brett
Brett Henderson <brett@bretth.com> wrote:
Yep, that's fine. Thanks for the help.
OK, I just dropped your database and created a new one with postgis and hstore-new: osmosisci_pgsql06=# \d Liste der Relationen Schema | Name | Typ | Eigentümer --------+------------------+---------+------------ public | geometry_columns | Tabelle | osmosisci public | spatial_ref_sys | Tabelle | osmosisci (2 Zeilen) osmosisci_pgsql06=# create table foobar (tags hstore, way geometry); CREATE TABLE osmosisci_pgsql06=# \d foobar Tabelle »public.foobar« Spalte | Typ | Attribute --------+----------+----------- tags | hstore | way | geometry | osmosisci_pgsql06=# select DropGeometryTable('foobar'); dropgeometrytable ------------------------ public.foobar dropped. (1 Zeile) Regards Sven -- "Das Einzige, wovor wir Angst haben sollten, ist die Angst selbst" (Franklin D. Roosevelt) /me is giggls@ircnet, http://sven.gegg.us/ on the Web
2010/8/26 Sven Geggus <lists@fuchsschwanzdomain.de>
Brett Henderson <brett@bretth.com> wrote:
Yep, that's fine. Thanks for the help.
OK, I just dropped your database and created a new one with postgis and hstore-new:
Fantastic, thanks Sven. I'll test it out (hopefully) this evening. Cheers, Brett
participants (3)
-
Brett Henderson -
Sven Geggus -
Tobias Wendorff