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

Test and develop on postgres 15 #5918

Merged
merged 4 commits into from
Sep 18, 2023
Merged

Test and develop on postgres 15 #5918

merged 4 commits into from
Sep 18, 2023

Conversation

hackartisan
Copy link
Member

@hackartisan hackartisan commented Jul 27, 2023

To make this work locally I had to upgrade lando and upgrade my local postgres (running via brew -- its pg_dump is used to create the schema file stored with the rails project)

advances #5903

@tpendragon tpendragon marked this pull request as ready for review July 28, 2023 04:10
@hackartisan hackartisan mentioned this pull request Jul 28, 2023
68 tasks
@tpendragon
Copy link
Contributor

tpendragon commented Jul 31, 2023

Things I had to do to get this installing locally:

HOMEBREW_NO_AUTO_UPDATE=1 brew upgrade postgresql
Install Lando 3.18.0 from https://github.com/lando/lando/releases
lando destroy
rake servers:start

I ended up with a local postgres 14 which seemed to work but isn't exactly right. To get 15 I think we'd have to uninstall 14, install postgresql@15, and then follow the instructions in the prompt to add some path stuff to ~/.zshrc.local

@hackartisan
Copy link
Member Author

hackartisan commented Aug 1, 2023

I just hit a problem since upgrading to postgres 15 locally where running rails server and hitting the database caused a segmentation fault. Adding export PGGSSENCMODE="disable" to my zshrc resolved it. there are issues in the pg repo, e.g. ged/ruby-pg#538

I also had to update my vim-test configuration like:

nnoremap <Leader>a :TestSuite PGGSSENCMODE=disable<CR>
nnoremap <Leader>t :TestFile PGGSSENCMODE=disable<CR>
nnoremap <Leader>n :TestNearest PGGSSENCMODE=disable<CR>
nnoremap <Leader>l :TestLast PGGSSENCMODE=disable<CR>

hackartisan and others added 4 commits September 18, 2023 13:04
To make this work locally I had to upgrade lando and upgrade my local
postgres (running via brew -- its pg_dump is used to create the schema file
stored with the rails project)
@tpendragon tpendragon merged commit caaba18 into main Sep 18, 2023
@tpendragon tpendragon deleted the 5903-pg15-ci branch September 18, 2023 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants