Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjiQ6-0005pn-JB for pgsql-general@arkaria.postgresql.org; Mon, 30 Nov 2020 12:36:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kjiQ3-0002bf-T6 for pgsql-general@arkaria.postgresql.org; Mon, 30 Nov 2020 12:36:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjiQ3-0002bX-HZ for pgsql-general@lists.postgresql.org; Mon, 30 Nov 2020 12:36:39 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kjiQ0-0002eg-Ia for pgsql-general@lists.postgresql.org; Mon, 30 Nov 2020 12:36:38 +0000 Received: by mail-wr1-x42d.google.com with SMTP id p8so16005379wrx.5 for ; Mon, 30 Nov 2020 04:36:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=RU4h7Ktq+omGlBbzdKqzmlZZ26GxwaUcSd2tcW1fxug=; b=rAGvER33f7Qs1RVILfZuvnXYvy5yIyyThw/yE8HoLA0ePshO/Fv+2FRzEmZVU/g0MA mDCbUT8IvM8oTXDYERz6p/+O+Yy5qA0P5wKsCYlF2OYPSEcs2oOO2v2MX4A+R1zISQ4N L8+Ofrg0YuopBZuKGEClPPD9VG7ZsE6NmF2bXga2/TBgmznIhWunh5RkZDcMWUaUd6Qo kgr7wnOBXoROaO+nd9sbXomQF+/99XjLJj1M+/HAqrxSg2rRVaKNZ4CqAIl7tbZdConu 6QDdWk7Nq7Tlij2PR2+1NhVAZA0vXb62SLFbAyqG58ImDIkPi8DmWEDZzWpIlq0eVS+k GZ2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=RU4h7Ktq+omGlBbzdKqzmlZZ26GxwaUcSd2tcW1fxug=; b=EY94SzRmgy6hgYcySaNMaVNiw4N91+4cimMA6DzCI5TjKjQ3dTq//b20TYZD6RDlPs PI0zF5huUaoPReS87+a5C1U+Ui1iydTp9wlCn8SfdfYN+byEIdRCueO/i21vL2iLzR0y 8/dVWwxOTvQ/WLMtdv9y/29svLP4HOZ6FGe0tDgnkUzpg+HG7BIWZvlcUi6YQIlbkVZo ufgsD6P3F/mYCi+dBIIDs9PyJj+SToiazOn/mUUnBmfDHhzDeIKZfDT8jy02Bg+uA4O3 gZS0wbR44HckCBTfLmVv6GdI/5d1ZzATYBwEbTNG/Pi34x8V4P7HAAf1FvGCxLkMcYkM YzSA== X-Gm-Message-State: AOAM532BC9APyCz/LnNs8fs3Oe/7ipShcf6k9imedvN60EbrqZgUJCGR zzgum6nvsJZUKFT7lCmPKn7CTg== X-Google-Smtp-Source: ABdhPJzWSvmCLjdBuuUz0HMUMPfBsT/r6tUTlm3tfLxteNPPWoldKu8ACyRuLzhrObriarxjA4RkzQ== X-Received: by 2002:adf:e912:: with SMTP id f18mr27420658wrm.79.1606739795719; Mon, 30 Nov 2020 04:36:35 -0800 (PST) Received: from localhost.localdomain (217-149-173-219.nat.highway.telekom.at. [217.149.173.219]) by smtp.gmail.com with ESMTPSA id d2sm27410823wrn.43.2020.11.30.04.36.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2020 04:36:35 -0800 (PST) Message-ID: <291fe29186546258c6ae807a7efb20b3edda8a2c.camel@cybertec.at> Subject: Re: Storage and querying of filesystem paths From: Laurenz Albe To: Laura Smith , postgre Date: Mon, 30 Nov 2020 13:36:34 +0100 In-Reply-To: <8tVrsHsAWSD22jnyKoaokZfRmhHCjmL1gIa_8Ezxu7rCvyYWOj2g2LJF86lesm3a38dwdzbejpE5VtnO2TV4RdJaqa0uk55viQLERCEtG-Y=@protonmail.ch> References: <8tVrsHsAWSD22jnyKoaokZfRmhHCjmL1gIa_8Ezxu7rCvyYWOj2g2LJF86lesm3a38dwdzbejpE5VtnO2TV4RdJaqa0uk55viQLERCEtG-Y=@protonmail.ch> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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