pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Peter Devoy <peter@3xe.co.uk>
To: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Enforcing uniqueness on [real estate/postal] addresses
Date: Tue, 12 May 2020 15:41:18 -0700
Message-ID: <0db59800-fd9b-5bd8-ff06-0f10c2c642af@aklaver.com> (raw)
In-Reply-To: <CABoFc_jWOMgKxm7yRTLRO_ZPyNi_L0LhxCvbM2CPGKFt56b88Q@mail.gmail.com>
References: <CABoFc_im50V4DgcOddDiPyDWEFkVR==P26q8fBLNdgcpx--rSw@mail.gmail.com>
	<87o8qu0ygd.fsf@gmail.com>
	<20200512170741.GA11324@hjp.at>
	<CABoFc_jWOMgKxm7yRTLRO_ZPyNi_L0LhxCvbM2CPGKFt56b88Q@mail.gmail.com>

On 5/12/20 1:55 PM, Peter Devoy wrote:
>> Is is possible to have two entries which have the same
>> address_identifier_general, street and postcode, but different
>> descriptions?
> 
> Unfortunately, yes.  The data comes from gov't systems to
> regulate the development/alteration of arbitrary pieces of property and
> those pieces do not always have a postal address.  E.g. a farmer may
> one year apply to erect a wind turbine in "field north of Foo Cottage"
> and the next year apply to demolish "barnhouse west of Foo Cottage".

Having farmed myself, letting a farmer define a property is a 
questionable practice:)

> 
> Now, I know what you are thinking, there is a normalization opportunity and you
> may well be right. However, the problem does exist in some of the other fields
> too and I am already facing a fair amount of join complexity in my schema so I
> am trying to figure out my options :)
> 
>> (What is an address_identifier_general, btw?)
> Address identifier composed by numbers and/or characters. I'm using the
> terminology from the EU's "INSPIRE Data Specification on Addresses" Guidelines.

Took a quick scan through above, that was mind numbing. I did see that 
there are provisions for geographic reference grids. Is that an option?

> 
> I haven't yet had the opportunity to try out the above suggestions but I will
> post again when I have.
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (17+ messages)  latest in thread

Message-ID: <0db59800-fd9b-5bd8-ff06-0f10c2c642af@aklaver.com>
Permalink:  ../0db59800-fd9b-5bd8-ff06-0f10c2c642af@aklaver.com/
Also on:    postgresql.org/message-id/0db59800-fd9b-5bd8-ff06-0f10c2c642af@aklaver.com

 · 

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, peter@3xe.co.uk, hjp-pgsql@hjp.at
  Subject: Re: Enforcing uniqueness on [real estate/postal] addresses
  In-Reply-To: <0db59800-fd9b-5bd8-ff06-0f10c2c642af@aklaver.com>
  References: <CABoFc_im50V4DgcOddDiPyDWEFkVR==P26q8fBLNdgcpx--rSw@mail.gmail.com> <87o8qu0ygd.fsf@gmail.com> <20200512170741.GA11324@hjp.at> <CABoFc_jWOMgKxm7yRTLRO_ZPyNi_L0LhxCvbM2CPGKFt56b88Q@mail.gmail.com> <0db59800-fd9b-5bd8-ff06-0f10c2c642af@aklaver.com>

* 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