What object types should be in schemas? - Mailing list pgsql-hackers

From Peter Eisentraut
Subject What object types should be in schemas?
Date
Msg-id 422c5d78-839f-8232-cd16-a887979ef901@enterprisedb.com
Whole thread Raw
Responses Re: What object types should be in schemas?
Re: What object types should be in schemas?
List pgsql-hackers
The current hierarchy of object types is like this:

database
    access method
    event trigger
    extension
    foreign data wrapper
    foreign server
    language
    publication
    schema
        aggregate
        collation
        conversion
        domain
        function/procedure
        index
        operator
        operator class
        operator family
        sequence
        statistics
        table/view
            policy
            rule
            trigger
        text search configuration
        text search dictionary
        text search parser
        text search template
        type
    subscription
role
tablespace

special:
- cast
- transform
- user mapping


How does one decide whether something should be in a schema or not?  The 
current state feels intuitively correct, but I can't determine any firm 
way to decide.

Over in the column encryption thread, the patch proposes to add various 
key types as new object types.  For simplicity, I just stuck them 
directly under database, but I don't know whether that is correct.

Thoughts?



pgsql-hackers by date:

Previous
From: "Drouvot, Bertrand"
Date:
Subject: Re: Minimal logical decoding on standbys
Next
From: Robert Treat
Date:
Subject: Re: doc: mentioned CREATE+ATTACH PARTITION as an alternative to CREATE TABLE..PARTITION OF