Re: Enforcing uniqueness on [real estate/postal] addresses

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Peter Devoy <peter(at)3xe(dot)co(dot)uk>, "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Enforcing uniqueness on [real estate/postal] addresses
Date: 2020-05-12 22:41:18
Message-ID: 0db59800-fd9b-5bd8-ff06-0f10c2c642af@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-05-12 23:03:18 Re: Upgrade Process Says "The database server was not shut down cleanly" but it was
Previous Message Rich Shepard 2020-05-12 22:23:13 Re: Enforcing uniqueness on [real estate/postal] addresses