GetSocketDir gets the name of the directory that will contain the Unix socket for the PostgreSQL server. This is detected using the PGHOST environment variable or using a default
()
| 485 | // the Unix socket for the PostgreSQL server. This is detected using |
| 486 | // the PGHOST environment variable or using a default |
| 487 | func GetSocketDir() string { |
| 488 | socketDir := os.Getenv("PGHOST") |
| 489 | if socketDir == "" { |
| 490 | socketDir = postgres.SocketDirectory |
| 491 | } |
| 492 | |
| 493 | return socketDir |
| 494 | } |
| 495 | |
| 496 | // GetServerPort gets the port where the postmaster will be listening |
| 497 | // using the environment variable or, when empty, the default one |
no outgoing calls
no test coverage detected