python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
jackc pgx scan array
I want to scan in an array of strings using the pgx library without using pq ideally. Is there a way of doing this:
sourceKeys := make([]string, 0, 1)
err := rows.Scan(
pq.Array(&sourceKeys),
...
user17976520
Votes: 0
Answers: 0
Create User in postgres with pgx (SQLSTATE 42601)
I am trying to create a user in postgres. currently trying to use https://github.com/jackc/pgx as the driver to connect to the db. I have the below
package main
import (
"context"
&...
Moulick
Votes: 0
Answers: 1
How to force closing pgxpool.Pool while queries are still running
I'm implementing graceful termination for a Golang Application deployed on a Kubernetes cluster. I'm using pgxconn.Pool.
My main challenge now is to forcefully kill all queries from the Application th...

AlexGordon
Votes: 0
Answers: 0
is it possible to connect to recovered host after failover using postgres libpq's multi-host connection string?
I have 2 db hosts: host1 and host2.
I connect to db using multi host connection string: postgresql://host1:port1,host2:port2/. According to libpq documentation, connection is established with first su...
Rohanil
Votes: 0
Answers: 1