pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Enforcing uniqueness on [real estate/postal] addresses
Date: Tue, 12 May 2020 15:23:13 -0700 (PDT)
Message-ID: <alpine.LNX.2.20.2005121518410.29121@salmo.appl-ecosys.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 Tue, 12 May 2020, 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".

I'm in the US but recently read (in The Economist, I think) that house
numbers in the UK are sometimes denied by the local government and the owner
told to select a name for the property.

Can you have a primary key for the property descrption, e.g., "Foo Cottage"
and another (related) column for objects associated with it; e.g., "North
field" and "West barnhouse?"

Similar to an apartment (flat) number in a multifamily dwelling.

Rich





view thread (17+ messages)  latest in thread

Message-ID: <alpine.LNX.2.20.2005121518410.29121@salmo.appl-ecosys.com>
Permalink:  ../alpine.LNX.2.20.2005121518410.29121@salmo.appl-ecosys.com/
Also on:    postgresql.org/message-id/alpine.LNX.2.20.2005121518410.29121@salmo.appl-ecosys.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: rshepard@appl-ecosys.com
  Subject: Re: Enforcing uniqueness on [real estate/postal] addresses
  In-Reply-To: <alpine.LNX.2.20.2005121518410.29121@salmo.appl-ecosys.com>
  References: <CABoFc_im50V4DgcOddDiPyDWEFkVR==P26q8fBLNdgcpx--rSw@mail.gmail.com> <87o8qu0ygd.fsf@gmail.com> <20200512170741.GA11324@hjp.at> <CABoFc_jWOMgKxm7yRTLRO_ZPyNi_L0LhxCvbM2CPGKFt56b88Q@mail.gmail.com> <alpine.LNX.2.20.2005121518410.29121@salmo.appl-ecosys.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