Re: Packages: Again

From: Jim Nasby <Jim(dot)Nasby(at)BlueTreble(dot)com>
To: Serge Rielau <serge(at)rielau(dot)com>, Peter Geoghegan <pg(at)heroku(dot)com>
Cc: Kevin Grittner <kgrittn(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Craig Ringer <craig(at)2ndquadrant(dot)com>, Wolfgang Wilhelm <wolfgang20121964(at)yahoo(dot)de>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Packages: Again
Date: 2017-01-17 02:28:32
Message-ID: cb99a8b5-9cb4-3adc-a76a-98e8efb0ac11@BlueTreble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 1/13/17 10:56 PM, Serge Rielau wrote:
> But what irks me in this debate is that any reasoned and detailed
> argumentation of value of the principle itself is shut down with
> un-reasoned and un-detailed one-liners.
> “I’m not convinced” is not an argument.
> Counterpoints require content. Something starting with “because …”

+1.

I really can't fathom how someone can flatly say that a nested namespace
is a dumb idea. Your filesystem does this. So does plpgsql. I could
absolutely make use of nested "schemas" (or make it some other feature
if "nested schema" offends you so much).

I agree that a nested namespace might violate ANSI (depending on if you
overload schema/module), and that it might be hard to do with how
Postgres currently works. And those may be reason enough not to attempt
the effort. But those have *nothing* to do with how useful such a
feature would be to users.

This is similar to the 10+ years users would ask for "DDL triggers" and
get jumped all over because of how hard it would be to actually put a
trigger on a catalog table. Thankfully someone that knew the code AND
understood the user desire came up with the notion of event triggers
that put hooks into every individual DDL command. Users got what they
wanted, without any need to put "real triggers" on catalog tables.

FWIW, what I wish for in this area is:

- SOME kind of nested namespace for mulitple kinds of objects (not just
functions)
- A way to mark those namespaces (and possibly other objects) as private.
- A way to reference extensions from other extensions and deal with
extensions being moved to a different schema (or namespace).
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim Nasby 2017-01-17 02:34:40 Re: PSQL commands: \quit_if, \quit_unless
Previous Message Michael Paquier 2017-01-17 02:22:45 Re: Patch to implement pg_current_logfile() function