Commit graph

16 commits

Author SHA1 Message Date
Matt Amos
ced8ac86ab Remove need for shared library PostgreSQL functions
This repo contains code for three functions to be loaded into PostgreSQL as a shared library:

1. `maptile_for_point`, which is used only by the `/changes` API call. This API call is little-used and IMHO should be deprecated and removed. However, even now it's hardly on the hot path for most development activities.
2. `tile_for_point`, which is used only in migrations. At this point, it seems unlikely that anyone will be doing a migration on existing data which would call this function (most developers will be running migrations on an empty database, to set it up).
3. `xid_to_int4`, which is only used for replication using Osmosis and isn't used in the Rails code at all. Hopefully this will be replaced Real Soon Now, but until then it's a quite advanced feature that most developers won't need.

Therefore, this patch proposes to replace the above three shared library functions with SQL implementations of the first two. These are _much_ slower - by a factor of about 30x, however this makes no difference when they're run on a completely empty database. In return, we're able to drop a dependency on the PostgreSQL server development package, and clean a few lines out of the installation instructions.

It's still possible to make and install the shared library functions, and I've included instructions about how to do that - although it shouldn't be necessary for the vast majority of `openstreetmap-website` developers.
2019-10-04 13:25:00 +01:00
Tom Hughes
dc5cdebc29 Create config/settings.local.yml in Vagrant provisioning script 2019-08-08 09:50:13 +01:00
Tom Hughes
2a9346adb0 Make sure phantomjs is installed 2019-08-07 17:29:26 +01:00
Tom Hughes
4efe7cdc10 Fix vagrant provisioning script
Fixes #2343
2019-08-07 17:27:25 +01:00
Tom Hughes
a5735683e9 Avoid bundler 2.x for now
Fixes #2149
2019-02-20 21:46:21 +00:00
Tom Hughes
b4d1a7ad67 Update vagrant config to use Ubuntu 18.04 2018-09-28 19:55:38 +01:00
Tom Hughes
619fa7d802 Update vagrant configuration
Use a common box for all platforms and fix up various
issues with the provisioning script.
2018-05-31 22:53:22 +01:00
Grant Slater
89ba5eab46 Switch vagrant Ubuntu Trusty -> Xenial 2017-01-03 12:42:35 +00:00
Tom Hughes
8fd70ff44f Make vagrant provision script stop on error 2016-03-28 22:45:20 +01:00
Victor Grousset
1efbcc3ff4 Vagrant: Fix locale setup problem
Because dozens of red locale errors during provisioning are scary
2015-12-31 01:22:11 +01:00
Victor Grousset
fb6830dbb2 Update vagrant provision script with current install commands
From INSTALL.md
2015-12-31 00:31:44 +01:00
Tom Hughes
0546ebb7b0 Upgrade vagrant config to use Ubuntu 14.04
This uses the sputnik13/trusty64 image rather then the official
ubuntu/trusty64 image in order to get libvirt provider support as
wall as virtualbox provider support.
2015-05-31 14:55:32 +01:00
Tom Hughes
14d4b9206c Fix vagrant to install all thee 3GL functions 2015-05-07 23:13:07 +01:00
Amir Wilf
103ba7977f Vagrant deploy works
Creating extension btree_gist for test DB 'osm_test'
2015-01-18 14:14:53 +02:00
Matt Amos
581d871827 Migrate the database on vagrant up.
Also fix the provisioning script so that it runs correctly when
the VM is upped, regardless of whether it's a clean install or
an 'up' of a previously halted VM.
2014-03-08 11:33:52 +00:00
Matt Amos
3c1371adaf Move vagrant provisioning script to a better location. 2014-02-26 11:35:43 +00:00
Renamed from config/vagrant/provision.sh (Browse further)