From: Wei Weng <wweng@kencast.com>
To: pgsql-sql@postgresql.org
Subject: How do I do this?
Date: Wed, 23 Mar 2005 12:37:54 -0500
Message-ID: <4241A972.6040103@kencast.com> (raw)
I have a table with column filepath with contents that look like the following:
filepath
==============
/var/log/foo
/var/log/bar
/var/cache/foo
/var/cache/bar
/var/foo
/var/bar
Is there anyway to retrieve the directory information only regarding those
filepaths?
So that I can get
/var/log
/var/cache
/var
as the result of a query?
Thanks!
(I am using PostgreSQL 7.4)
Wei
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: wweng@kencast.com
Subject: Re: How do I do this?
In-Reply-To: <4241A972.6040103@kencast.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