Storage and querying of filesystem paths

Started by Laura Smithover 5 years ago3 messagesgeneral
Jump to latest
#1Laura Smith
n5d9xq3ti233xiyif2vp@protonmail.ch

Hi,
How have others approached the problem of storing and querying filesystem paths ?
I'm talking about *nix/*nux style paths, e.g. /home/foo/bar
A text column with a GIN index is an obvious possibility, but I'm interested to hear what approach others have taken ?
Laura

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: Laura Smith (#1)
Re: Storage and querying of filesystem paths

On Mon, 2020-11-30 at 12:05 +0000, Laura Smith wrote:

How have others approached the problem of storing and querying filesystem paths ?
I'm talking about *nix/*nux style paths, e.g. /home/foo/bar
A text column with a GIN index is an obvious possibility, but I'm interested to hear what approach others have taken ?

I have not personally taken that approach, but you could give the
ltree extension a go.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

#3Laura Smith
n5d9xq3ti233xiyif2vp@protonmail.ch
In reply to: Laurenz Albe (#2)
Re: Storage and querying of filesystem paths

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, November 30, 2020 12:36 PM, Laurenz Albe <laurenz.albe@cybertec.at> wrote:

On Mon, 2020-11-30 at 12:05 +0000, Laura Smith wrote:

How have others approached the problem of storing and querying filesystem paths ?
I'm talking about *nix/*nux style paths, e.g. /home/foo/bar
A text column with a GIN index is an obvious possibility, but I'm interested to hear what approach others have taken ?

I have not personally taken that approach, but you could give the
ltree extension a go.

Yours,
Laurenz Albe

---------------------------------------------------------------------------------------------------------------

Cybertec | https://www.cybertec-postgresql.com

Thanks Laurenz. Will take a look at ltree