pgsql: Document strange jsonb sort order for empty top level arrays

2025-01-03 Thread Andrew Dunstan
Document strange jsonb sort order for empty top level arrays Slightly faulty logic in the original jsonb code (commit d9134d0a355) results in an empty top level array sorting less than a json null. We can't change the sort order now since it would affect btree indexes over jsonb, so document the a

pgsql: Document strange jsonb sort order for empty top level arrays

2025-01-03 Thread Andrew Dunstan
Document strange jsonb sort order for empty top level arrays Slightly faulty logic in the original jsonb code (commit d9134d0a355) results in an empty top level array sorting less than a json null. We can't change the sort order now since it would affect btree indexes over jsonb, so document the a

pgsql: Document strange jsonb sort order for empty top level arrays

2025-01-03 Thread Andrew Dunstan
Document strange jsonb sort order for empty top level arrays Slightly faulty logic in the original jsonb code (commit d9134d0a355) results in an empty top level array sorting less than a json null. We can't change the sort order now since it would affect btree indexes over jsonb, so document the a

pgsql: Document strange jsonb sort order for empty top level arrays

2025-01-03 Thread Andrew Dunstan
Document strange jsonb sort order for empty top level arrays Slightly faulty logic in the original jsonb code (commit d9134d0a355) results in an empty top level array sorting less than a json null. We can't change the sort order now since it would affect btree indexes over jsonb, so document the a

pgsql: Document strange jsonb sort order for empty top level arrays

2025-01-03 Thread Andrew Dunstan
Document strange jsonb sort order for empty top level arrays Slightly faulty logic in the original jsonb code (commit d9134d0a355) results in an empty top level array sorting less than a json null. We can't change the sort order now since it would affect btree indexes over jsonb, so document the a

pgsql: Document strange jsonb sort order for empty top level arrays

2025-01-03 Thread Andrew Dunstan
Document strange jsonb sort order for empty top level arrays Slightly faulty logic in the original jsonb code (commit d9134d0a355) results in an empty top level array sorting less than a json null. We can't change the sort order now since it would affect btree indexes over jsonb, so document the a