Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: pg16 (#8726)

Danny Xuce63bf9083f9
diff --git a/backend/resources/postgres/postgres.go b/backend/resources/postgres/postgres.go
index a6caac6870..a3e81a5657 100644
--- a/backend/resources/postgres/postgres.go
+++ b/backend/resources/postgres/postgres.go
@@ -21,7 +21,7 @@ import (
)
const (
- currentVersion = "14"
+ currentVersion = "16"
)
// Install will extract the postgres and utility tar in resourceDir.
@@ -89,7 +89,7 @@ func start(port int, binDir, dataDir string, serverLog bool) (err error) {
// We also set max_connections to 500 for tests.
p := exec.Command(pgbin, "start", "-w",
"-D", dataDir,
- "-o", fmt.Sprintf(`-p %d -k %s -N 500 -h "" -c stats_temp_directory=/tmp`, port, common.GetPostgresSocketDir()))
+ "-o", fmt.Sprintf(`-p %d -k %s -N 500 -h ""`, port, common.GetPostgresSocketDir()))
uid, _, sameUser, err := shouldSwitchUser()
if err != nil {
diff --git a/backend/tests/syncer_test.go b/backend/tests/syncer_test.go
index 4fe305147a..89ec386242 100644
--- a/backend/tests/syncer_test.go
+++ b/backend/tests/syncer_test.go
@@ -90,9 +90,9 @@ func TestSyncerForPostgreSQL(t *testing.T) {
{
Name: "VW",
Definition: strings.Join([]string{
- ` SELECT "TFK".a,`,
- ` "TFK".b,`,
- ` "TFK".c`,
+ ` SELECT a,`,
+ ` b,`,
+ ` c`,
` FROM "TFK";`},
"\n"),
DependentColumns: []*v1pb.DependentColumn{