Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG17 compatibility: Fix Test Failure in alter_index #7749

Open
wants to merge 1 commit into
base: release-13.0
Choose a base branch
from

Conversation

m3hm3t
Copy link
Contributor

@m3hm3t m3hm3t commented Nov 14, 2024

Changed attstattarget in pg_attribute to use NullableDatum, allowing null representation for default statistics target in PostgreSQL 17.
postgres/postgres@6a004f1

 -- verify statistics is set
 SELECT c.relname, a.attstattarget
 FROM pg_attribute a
 JOIN pg_class c ON a.attrelid = c.oid AND c.relname LIKE 'test\_idx%'
 ORDER BY c.relname, a.attnum;
   relname  | attstattarget 
 -----------+---------------
  test_idx  |          4646
- test_idx2 |            -1
+ test_idx2 |              
  test_idx2 |         10000
  test_idx2 |          3737
 (4 rows)

@m3hm3t m3hm3t self-assigned this Nov 14, 2024
@m3hm3t
Copy link
Contributor Author

m3hm3t commented Nov 14, 2024

old pr:
#7729

update

.

update

.

update

Revert "update"

This reverts commit 630cff9.

update

update

.

fix

style update

remove
@m3hm3t m3hm3t marked this pull request as ready for review November 14, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant