Re: Re: Advice - indexing on varchar fields where only last x characters known - Mailing list pgsql-sql

From skinner@britvault.co.uk (Craig R. Skinner)
Subject Re: Re: Advice - indexing on varchar fields where only last x characters known
Date
Msg-id 20131018113758.GA958@teak.britvault.co.uk
Whole thread Raw
In response to Re: Re: Advice - indexing on varchar fields where only last x characters known  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
List pgsql-sql
On 2013-10-18 Fri 08:22 AM |, Gary Stainburn wrote:
> 
> While the reverse() option may work for searching it will not be ideal for 
> foreign keys.
> 

Use an integer (serial) as the PK/FK & unique the VIN.

Then you can use reverse() for searching.

Kitcars, boat/garden/equipment/truck trailers, caravans, etc.
might not have any VIN.



pgsql-sql by date:

Previous
From: Gary Stainburn
Date:
Subject: Re: Re: Advice - indexing on varchar fields where only last x characters known
Next
From: David Johnston
Date:
Subject: Re: Advice - indexing on varchar fields where only last x characters known