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 1pFd6E-0000dT-Od for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jan 2023 15:33:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pFd6D-0004P2-Mn for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Jan 2023 15:33:09 +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 1pFd6C-0004Oq-Lm for pgsql-hackers@lists.postgresql.org; Wed, 11 Jan 2023 15:33:09 +0000 Received: from wnew3-smtp.messagingengine.com ([64.147.123.17]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pFd68-0007HE-B8 for pgsql-hackers@postgresql.org; Wed, 11 Jan 2023 15:33:08 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id C3EB72B066BA for ; Wed, 11 Jan 2023 10:33:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 11 Jan 2023 10:33:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1673451180; x=1673458380; bh=7ltMzxDzX82e1+VxBqF2Ahm9iEG2 Onm+gHCFcDF+CA4=; b=HQ8C+gVJHCVOR3qT/KNoUka34Sf7Lfbyu8TvWAb/ZLZ0 ofOo52vAVnP8M9Ogo9peB4UNhU7J+0NsPWfZjKN7Vo9fLCicWBngkxP1d4Ben6a0 Klt4maRlKwyiy5e/hgzRl8zheMcAg/A1AmU50XmmnvYIFtXKz9+fBiUbUYyfRLRv JwP2P1v14vwB/TSnophZlS7OCA5adVKLoeEcdRBwJJZlDvsdsQZwdYe7Al98zq9i uh2E0jZXepuHKAqcfKZLbIvW0Pw3iewQ2jBwrkk379jUDYDI/82o6dhqoIzIJ7OM /isdeab9j8B4UgpWUQ8n7oogwWa3ePAyAikCeRcgWw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrleeggdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfhffuvfgtgfesthejredttd efjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghi shgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvg hrnhepieejueevgefhieettedtgedtvefhvdeludelveevgeelvedtleeuheetvefftdeu necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvth gvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 11 Jan 2023 10:32:59 -0500 (EST) Message-ID: <422c5d78-839f-8232-cd16-a887979ef901@enterprisedb.com> Date: Wed, 11 Jan 2023 16:32:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US From: Peter Eisentraut Subject: What object types should be in schemas? To: pgsql-hackers Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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?