openstreetmap-website/script
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
..
locale Standardise on double quoted strings 2015-02-20 19:47:26 +00:00
misc Stop wiki update script trying to be "helpful" 2018-09-26 22:43:30 +01:00
vagrant/setup Remove need for shared library PostgreSQL functions 2019-10-04 13:25:00 +01:00
cleanup Fix daily cleanup script for rails 5.2 compatibility 2018-06-20 08:51:11 +01:00
daemons Fix most auto-correctable rubocop issues 2015-02-20 08:56:16 +00:00
deliver-message Fix Style/SafeNavigation rubocop warnings 2018-09-22 17:21:06 +01:00
gravatar Update gravatar methods to check for Active Storage images 2019-07-16 22:29:07 +01:00
statistics Fix rubocop warnings 2017-06-02 00:08:30 +01:00
update-spam-blocks Fix rubocop warnings 2017-06-02 00:08:30 +01:00