在 Postgresql 中不使用 "begin transaction" 和 "commit" 语句

Not using "begin transaction" and "commit" statements in Postgresql

每当我使用终端访问 PostgreSQL 数据库时,我都不会使用 "begin transaction" 或 "commit;" 语句。不过,我对数据库所做的更改是永久性的。 (当我关闭终端时,它们不会回滚)。为什么?我有什么遗漏吗?

默认情况下,psql CLI 界面以自动提交模式运行。 参见 https://dzone.com/articles/autocommit-in-postgresqls-psql