From: Daniel Silverstone Date: Sat, 8 Nov 2008 19:21:03 +0000 (+0000) Subject: CREATE FUNCTION statement for pgsql X-Git-Tag: live~7601^2~190 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/509b8d52074e7dce2ac078d16056f336536e8dac?hp=ee656dd1f3ee556e9c6793a70781d4346abfe01e CREATE FUNCTION statement for pgsql --- diff --git a/db/functions/maptile.c b/db/functions/maptile.c index 2c15d2b41..c2baac5d4 100644 --- a/db/functions/maptile.c +++ b/db/functions/maptile.c @@ -76,6 +76,16 @@ maptile_for_point(PG_FUNCTION_ARGS) PG_FUNCTION_INFO_V1(maptile_for_point); +/* + * To bind this into PGSQL, try something like: + * + * CREATE FUNCTION maptile_for_point(int8, int8, int4) RETURNS int4 + * AS '/path/to/rails-port/db/functions/libpgosm', 'maptile_for_point' + * LANGUAGE C STRICT; + * + * (without all the *s) + */ + #ifdef PG_MODULE_MAGIC PG_MODULE_MAGIC; #endif