Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about pgx

Read more about pgx

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - pgx

Setting a DialFunc for pgxpool.Config

I am having trouble creating a connection to a postgres database via ssh tunneling with the "github.com/jackc/pgx/v4/pgxpool" library. I cannot seem to figure out how to set the DialFunc for...
test-img

user17976520

postgresql

go

ssh-tunnel

pgx

Votes: 0

Answers: 2

Latest Answer

Add context and cast to pgconn.DialFunc: package main import ( "context" "net" "github.com/jackc/pgconn" "github.com/jackc/pgx/v4/p...
test-img

serge-v

conn closed when trying to make an insert into postgresql

I try to insert a user into postgres database and get three parameters back for futher processing but always get the error 'conn closed': package db import ( "context" "os"...
test-img

Andrey Yaroshenko

postgresql

go

pgx

Votes: 0

Answers: 2

Latest Answer

A single DB Connection is not concurrency safe and has no mechanism for reestablishing connections. Your issue is likely that concurrent access borked the connection, or it was closed for some other...
test-img

erik258

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved