# PostgreSQL 版本

> 比较各版本中的 SQLSTATE 定义与有文档依据的变化。
---

生成的表格会把正式 PostgreSQL 发布版与最新预发行快照分开。存在表示冻结源码中找到了该定义；这本身不等于证明运行时路径或精确的引入版本。

<!-- BEGIN SQLSTATE INDEX: generated by scripts/generate.py; do not edit -->

| 版本 | 渠道 | 错误码数 | 证据 |
| --- | --- | ---: | --- |
| [`9.0.23`](9.0/) | `正式版本` | 199 | [locked source](https://github.com/postgres/postgres/blob/9a42e8514f7e42737992bb09bd93540dd9630a9a/src/include/utils/errcodes.h) |
| [`9.1.24`](9.1/) | `正式版本` | 228 | [locked source](https://github.com/postgres/postgres/blob/e85493559c4678f54d30b6b4e04b17c03a3192d7/src/backend/utils/errcodes.txt) |
| [`9.2.24`](9.2/) | `正式版本` | 232 | [locked source](https://github.com/postgres/postgres/blob/8786f783ab2398468a8c4d8eac937fc6533d16e3/src/backend/utils/errcodes.txt) |
| [`9.3.25`](9.3/) | `正式版本` | 232 | [locked source](https://github.com/postgres/postgres/blob/c10bb239d29017ba66eca88a24b84a1d4db36a6c/src/backend/utils/errcodes.txt) |
| [`9.4.26`](9.4/) | `正式版本` | 232 | [locked source](https://github.com/postgres/postgres/blob/30ffdd24d7222bc01183a56d536c236240674516/src/backend/utils/errcodes.txt) |
| [`9.5.25`](9.5/) | `正式版本` | 236 | [locked source](https://github.com/postgres/postgres/blob/202c587e2f28bc295f6935d044e20680b627e7a1/src/backend/utils/errcodes.txt) |
| [`9.6.24`](9.6/) | `正式版本` | 238 | [locked source](https://github.com/postgres/postgres/blob/a4116b8d5a4f68803452d8f1aa3f74f302049a90/src/backend/utils/errcodes.txt) |
| [`10.23`](10/) | `正式版本` | 240 | [locked source](https://github.com/postgres/postgres/blob/02991e79f8f58bc208f05dcc8af0c62dbe0a6ea4/src/backend/utils/errcodes.txt) |
| [`11.22`](11/) | `正式版本` | 241 | [locked source](https://github.com/postgres/postgres/blob/fd851f9e4a13d81cccc4ac5d6059d732c7518111/src/backend/utils/errcodes.txt) |
| [`12.22`](12/) | `正式版本` | 257 | [locked source](https://github.com/postgres/postgres/blob/498f30a8b7025a2a7bd3715acc1d1692122ba542/src/backend/utils/errcodes.txt) |
| [`13.23`](13/) | `正式版本` | 258 | [locked source](https://github.com/postgres/postgres/blob/89df812eb890814b105d871185935b580478e660/src/backend/utils/errcodes.txt) |
| [`14.24`](14/) | `正式版本` | 259 | [locked source](https://github.com/postgres/postgres/blob/6b3806732b7c5df06bdd0ed150e8a07b4ad62315/src/backend/utils/errcodes.txt) |
| [`15.19`](15/) | `正式版本` | 260 | [locked source](https://github.com/postgres/postgres/blob/2ff1375b5dd8bf09d8cb0e795974528180fd75ca/src/backend/utils/errcodes.txt) |
| [`16.15`](16/) | `正式版本` | 260 | [locked source](https://github.com/postgres/postgres/blob/7d3e000c5961a544302072058a1184e9a588837b/src/backend/utils/errcodes.txt) |
| [`17.11`](17/) | `正式版本` | 260 | [locked source](https://github.com/postgres/postgres/blob/083ac033419f690758508e08c1736089384bbee8/src/backend/utils/errcodes.txt) |
| [`18.6`](18/) | `正式版本` | 262 | [locked source](https://github.com/postgres/postgres/blob/724edf9bde9d356724ad384a2e196edc3c9f80f7/src/backend/utils/errcodes.txt) |
| [`19beta3`](19/) | `预发行` | 262 | [locked source](https://github.com/postgres/postgres/blob/3638289fb57bdabec00deda98ee9624a35f5d66a/src/backend/utils/errcodes.txt) |

<!-- END SQLSTATE INDEX -->

---

反链：

- [SQLSTATE 大典](/zh/)
