pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Raymond Brinzer <ray.brinzer@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Nested Schemata, in a Standard-Compliant Way?
Date: Tue, 28 Sep 2021 09:36:20 -0400
Message-ID: <2834126.1632836180@sss.pgh.pa.us> (raw)
In-Reply-To: <CANasJHnxbKhE+z0Gmcx+A5t-CCsZYzJJhYPR4-syvvOoP8pzjQ@mail.gmail.com>
References: <CANasJHnxbKhE+z0Gmcx+A5t-CCsZYzJJhYPR4-syvvOoP8pzjQ@mail.gmail.com>

Raymond Brinzer <ray.brinzer@gmail.com> writes:
> So, for example, I'd like to be able to say something like this:

> SELECT * FROM /projects/contacts/people;

I looked into this many years ago.  (The reason why pg_namespace is called
that and not pg_schema is exactly that I thought it might someday include
sub-schemas.)  I don't think it's possible to do it without huge ambiguity
problems, unless you introduce some separator other than dot, as indeed
you suggest here.  But I also don't think that using some other separator
is a good idea.  There's not that much free punctuation available (unless
you want to step outside core ASCII, which'd bring its own problems).
Pretty much every character that isn't otherwise nailed down is allowed
as an operator character, meaning that redefining it is very likely to
break somebody's application or extension.  We had huge problems even
with taking over the => digraph, never mind single characters.

In the end the functionality-versus-problems ratio is just not going
to be very good.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <2834126.1632836180@sss.pgh.pa.us>
Permalink:  ../2834126.1632836180@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2834126.1632836180@sss.pgh.pa.us

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ray.brinzer@gmail.com
  Subject: Re: Nested Schemata, in a Standard-Compliant Way?
  In-Reply-To: <2834126.1632836180@sss.pgh.pa.us>
  References: <CANasJHnxbKhE+z0Gmcx+A5t-CCsZYzJJhYPR4-syvvOoP8pzjQ@mail.gmail.com> <2834126.1632836180@sss.pgh.pa.us>

* 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