Skip to content
Discussion options

You must be logged in to vote

There are multiple issues here.

First, I was able to reduce the scope of your example significantly. See below for the code. In particular, custom types have nothing to do with the issue you are experiencing. The same behavior occurs when using float64 directly.

Second, once example was reduced, the problem became clearer. You are trying to do things that PostgreSQL doesn't support. See what happens if you try to do this in psql.

postgres@[local]:5015 pgx_test=# select '{{1,2,3}}'::float8[];
  float8
───────────
 {{1,2,3}}
(1 row)

Time: 1.164 ms
postgres@[local]:5015 pgx_test=# select '{{1,2,3},null}'::float8[];
ERROR:  22P02: malformed array literal: "{{1,2,3},null}"
LINE 1: select '{{1…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@carmichaeljr
Comment options

@jackc
Comment options

jackc Nov 8, 2025
Maintainer

Answer selected by carmichaeljr
@carmichaeljr
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants