pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: postgres@jddonat.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14372: ll_to_earth(...) assumes it'll always be executed with 'public' in the search_path
Date: Sat, 15 Oct 2016 00:14:24 +0000
Message-ID: <20161015001424.1413.93990@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14372
Logged by:          john donat
Email address:      postgres@jddonat.com
PostgreSQL version: 9.4.9
Operating system:   Solaris 11.3
Description:        

ll_to_earth(...) in the earthdistance extension assumes it'll always be
executed with 'public' in the search_path before any other definition of
earth().

This has the effect of bringing BDR 1.0.0 replication to a halt when using
ll_to_earth in replicated ddl, as in an indexed expression declaration.

this following code will halt bdr replication in it's tracks:
create extension if not exists cube;
create extension if not exists earthdistance;

create table zip_code_geo_poly_data (
    id serial not null primary key,
    zip_code    text,
    latitude    numeric,
    longitude   numeric 
);

CREATE INDEX zip_code_geo_poly_data_ll_to_earth 
ON zip_code_geo_poly_data 
USING gist(ll_to_earth(latitude, longitude));


see https://github.com/2ndQuadrant/bdr/issues/252 for more information.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


Message-ID: <20161015001424.1413.93990@wrigleys.postgresql.org>
Permalink:  ../20161015001424.1413.93990@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20161015001424.1413.93990@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: postgres@jddonat.com
  Subject: Re: BUG #14372: ll_to_earth(...) assumes it'll always be executed with 'public' in the search_path
  In-Reply-To: <20161015001424.1413.93990@wrigleys.postgresql.org>
  References: <20161015001424.1413.93990@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox