GAITの試験問題サンプル*1を見ていて気付いたんだけど、PostgreSQLのオフィシャルサイトではPostgreSQLはobject-relational database systemだと謳っている*2。これってどういうことなの?Wikipediaにあるとおり*3普通のrelational databaseなのでは?と思っていたんだけど、どうも型定義や継承ができるから単なるrelational databaseでなくobject-relational databaseだ*4*5ということらしい。
実はCREATE TABLE
もPostgreSQLのマニュアル上では「新規テーブルの作成」でなく「新規クラスの作成」として説明されている*6。一方でMySQLのマニュアル*7やSQL Serverのマニュアル*8ではちゃんと「テーブルを作成」と書かれている。
*1:https://www.gait.org/sample/
*2:https://www.postgresql.org/about/
*3:https://en.wikipedia.org/wiki/PostgreSQL
*4:https://www.postgresql.jp/document/pg632doc/postgres/c0101.htm
*5:https://arctype.com/blog/postgres-ordbms-explainer/
*6:https://www.postgresql.jp/document/pg632doc/postgres/c0403.htm
*7:https://dev.mysql.com/doc/refman/5.6/ja/create-table.html
*8:https://learn.microsoft.com/ja-jp/sql/t-sql/statements/create-table-transact-sql?view=sql-server-ver16