We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4664f9 commit 9b46d8fCopy full SHA for 9b46d8f
scripts/embedded-pg/main.go
@@ -21,6 +21,7 @@ func main() {
21
Username("postgres").
22
Password("postgres").
23
Database("postgres").
24
+ Encoding("UTF8").
25
Port(uint32(5432)).
26
Logger(os.Stdout),
27
)
@@ -40,6 +41,7 @@ func main() {
40
41
`ALTER SYSTEM SET max_connections = '1000';`,
42
`ALTER SYSTEM SET shared_buffers = '1GB';`,
43
`ALTER SYSTEM SET synchronous_commit = 'off';`,
44
+ `ALTER SYSTEM SET client_encoding = 'UTF8';`,
45
}
46
db, err := sql.Open("postgres", "postgres://postgres:[email protected]:5432/postgres?sslmode=disable")
47
if err != nil {
0 commit comments