VMware Cloud Community
SDNEngineer
Contributor
Contributor

vPostgress basic commands

Hi folks, hope you're doing well. I am searching for

DB - Vpostgres - SQL

·         Simple query to view all contents in a table .

·         Simple query to insert data into  table row .

·         Simple query to delete a row in table .

Many thanks in Advance

0 Kudos
4 Replies
sk84
Expert
Expert

First, access or modification to the vPostgres databases of VMware appliances is not supported and should never take place without involving the GSS.

But vPostgres is just a normal PostgreSQL database and therefore all PostgreSQL commands for versions 9 and 10 are available.

For example:

https://www.postgresql.org/docs/9.6/docguide.html

https://www.postgresql.org/docs/10/index.html

--- Regards, Sebastian VCP6.5-DCV // VCP7-CMA // vSAN 2017 Specialist Please mark this answer as 'helpful' or 'correct' if you think your question has been answered correctly.
TomHowarth
Leadership
Leadership

messing about in the vCenter postgresql db is NOT supported by VMware and unless you have been directed by VMware to do so, you run the risk of being told your environment is unsupported.

if you want to learn PSQL I suggest you build a VM with it on and forget that vCenter is now running on Postgresql.

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410
daphnissov
Immortal
Immortal

To further reinforce what the other vExperts have said, if you're asking this in context of poking around in the vCenter database, DO NOT do that. If you need to access the data within, you need to learn to use the API via one of many methods. Stay out of the vCenter database.