getting ` Data insertion failed: ERROR: unnamed portal not found (SQLSTATE XX000)` while inserting array using pgx · Issue #11365 · risingwavelabs/risingwave · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While inserting array in risingwave using golang (pgx) this issue was faced.
Error message/log
frontend-node-0 | 2023-08-01T09:32:09.064419164Z ERROR pgwire::pg_protocol: error when process message, error: Not supported: param type: varchar[]
frontend-node-0 | HINT:
frontend-node-0 | at src/utils/pgwire/src/pg_protocol.rs:175
frontend-node-0 |
frontend-node-0 | 2023-08-01T09:32:09.064490145Z ERROR pgwire::pg_protocol: error when process message, error: unnamed portal not found
frontend-node-0 | at src/utils/pgwire/src/pg_protocol.rs:175
frontend-node-0 |
frontend-node-0 | 2023-08-01T09:32:09.064530464Z ERROR pgwire::pg_protocol: error when process message, error: unnamed portal not found
frontend-node-0 | at src/utils/pgwire/src/pg_protocol.rs:175
frontend-node-0 |
To Reproduce
Create table using below query
CREATE TABLE IF NOT EXISTS taxi (
taxi_id VARCHAR PRIMARY KEY,
passengers VARCHAR[],
license_plate VARCHAR,
company VARCHAR,
expiration_date DATE,
driver VARCHAR
)
Insert the following values into the table using golang (pgx)
cfg, err := pgx.ParseConfig("postgres://root@localhost:4566/dev")
if err != nil {
log.Fatalf("Failed to parse config: %v", err)
}
// TODO: Investigate into why simple protocol is required
cfg.DefaultQueryExecMode = pgx.QueryExecModeSimpleProtocol
Setting it to the QueryExecModeSimpleProtocol should work. But this issue is still what we need to resolve later. Because the extended protocol is theoriotically more efficient.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
While inserting array in risingwave using golang (pgx) this issue was faced.
Error message/log
To Reproduce
Create table using below query
Insert the following values into the table using golang (pgx)
Expected behavior
No response
How did you deploy RisingWave?
No response
The version of RisingWave
Additional context
No response
The text was updated successfully, but these errors were encountered: