Re: Extracting hostname from URI column

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Extracting hostname from URI column
Date: 2007-09-17 14:43:24
Message-ID: 20070917144324.GP582@crankycanuck.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, Sep 17, 2007 at 12:18:56AM +0100, Gregory Stark wrote:
>
> Not all countries break up their national tld space into sections like .co.uk
> or .com.au. Canadian domains can be bought directly under .ca like amazon.ca.
>
> I think you'll have to store a specific list of tlds and how deep you want to
> look.

Another way to look at this is that any containing domain is just a
domain. So .info is a domain, example.info is a domain, and in case
of the existence of host1.some.example.info, some.example.info is a
domain. Also, co.uk is just as much a domain as yahoo.co.uk.

Some poor misguided people at Netscape badly misunderstood the DNS
many years ago, and web browser cookies have been attempting to
recover from that misunderstanding ever since (with sometimes serious
security implications). There's really no reliable way to deduce
common responsibility from the DNS labels, and it's sometimes
terrifically important not to make that mistake.

A

--
Andrew Sullivan | ajs(at)crankycanuck(dot)ca
The plural of anecdote is not data.
--Roger Brinner

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Steve Midgley 2007-09-18 00:42:27 SQL performance help: self join or static var
Previous Message Oliver Elphick 2007-09-17 12:13:35 Re: Format interval as hours/minutes etc