2022-05-26 15:20:04.315252T @ postmaster XX000[2022-05-26 15:20:04 CST] 0 [36383] FATAL: database files are incompatible with server 2022-05-26 15:20:04.315252T @ postmaster XX000[2022-05-26 15:20:04 CST] 0 [36383] DETAIL: The database cluster was initialized with CATALOG_VERSION_NO 202007201, but the server was compiled with CATALOG_VERSION_NO 202204261. 2022-05-26 15:20:04.315252T @ postmaster XX000[2022-05-26 15:20:04 CST] 0 [36383] HINT: It looks like you need to initdb. 2022-05-26 15:20:04.315872T @ postmaster 00000[2022-05-26 15:20:04 CST] 0 [36383] LOG: database system is shut down waiting for server to start... stopped waiting lt_ctl: could not start server
原因是客户端版本不同,CATALOG_VERSION_NO 202007201相当于 svn号,内部的版本号不同
The database cluster was initialized with CATALOG_VERSION_NO 202007201, but the server was compiled with CATALOG_VERSION_NO 202204261