Yet Another Way to View the Postgres/YugabyteDB Version in YSQL

We learned in several earlier tips how to display the version of YugabyteDB.

For fun, here are few more tips on how to display the current versions of Postgres and YugabyteDB supported in YSQLSH. 

				
					yugabyte=# \echo :VERSION
PostgreSQL 11.2-YB-2.17.1.0-b0 on x86_64-pc-linux-gnu, compiled by clang version 15.0.3 (https://github.com/yugabyte/llvm-project.git 0b8d1183745fd3998d8beffeec8cbe99c1b20529), 64-bit

yugabyte=# \echo :VERSION_NAME
11.2-YB-2.17.1.0-b0

yugabyte=# \echo :VERSION_NUM
110002
				
			

Have Fun!

Beautiful home on Bean Point Beach