knox / Neon-readme-13.sh
0 likes
0 forks
1 files
Last active
1 | # create branch named migration_check |
2 | > cargo neon timeline branch --branch-name migration_check |
3 | Created timeline 'b3b863fa45fa9e57e615f9f2d944e601' at Lsn 0/16F9A00 for tenant: 9ef87a5bf0d92544f6fafeeb3239695c. Ancestor timeline: 'main' |
4 | |
5 | # check branches tree |
6 | > cargo neon timeline list |
7 | (L) main [de200bd42b49cc1814412c7e592dd6e9] |
8 | (L) ┗━ @0/16F9A00: migration_check [b3b863fa45fa9e57e615f9f2d944e601] |
9 | |
10 | # create postgres on that branch |
knox / Neon-readme-12.txt
0 likes
0 forks
1 files
Last active
1 | > psql -p 55432 -h 127.0.0.1 -U cloud_admin postgres |
2 | postgres=# CREATE TABLE t(key int primary key, value text); |
3 | CREATE TABLE |
4 | postgres=# insert into t values(1,1); |
5 | INSERT 0 1 |
6 | postgres=# select * from t; |
7 | key | value |
8 | -----+------- |
9 | 1 | 1 |
10 | (1 row) |
knox / Neon-readme-11.sh
0 likes
0 forks
1 files
Last active
1 | # Create repository in .neon with proper paths to binaries and data |
2 | # Later that would be responsibility of a package install script |
3 | > cargo neon init |
4 | Initializing pageserver node 1 at '127.0.0.1:64000' in ".neon" |
5 | |
6 | # start pageserver, safekeeper, and broker for their intercommunication |
7 | > cargo neon start |
8 | Starting neon broker at 127.0.0.1:50051. |
9 | storage_broker started, pid: 2918372 |
10 | Starting pageserver node 1 at '127.0.0.1:64000' in ".neon". |
knox / Neon-readme-10.sh
0 likes
0 forks
1 files
Last active
1 | # Note: The path to the neon sources can not contain a space. |
2 | |
3 | git clone --recursive https://github.com/neondatabase/neon.git |
4 | cd neon |
5 | |
6 | # The preferred and default is to make a debug build. This will create a |
7 | # demonstrably slower build than a release build. For a release build, |
8 | # use "BUILD_TYPE=release make -j`sysctl -n hw.logicalcpu` -s" |
9 | # Remove -s for the verbose build log |
knox / Neon-readme-9.sh
0 likes
0 forks
1 files
Last active
1 | # Note: The path to the neon sources can not contain a space. |
2 | |
3 | git clone --recursive https://github.com/neondatabase/neon.git |
4 | cd neon |
5 | |
6 | # The preferred and default is to make a debug build. This will create a |
7 | # demonstrably slower build than a release build. For a release build, |
8 | # use "BUILD_TYPE=release make -j`nproc` -s" |
9 | # Remove -s for the verbose build log |
knox / Neon-readme-8.sh
0 likes
0 forks
1 files
Last active
1 | # from https://stackoverflow.com/questions/44654216/correct-way-to-install-psql-without-full-postgres-on-macos |
2 | brew install libpq |
3 | brew link --force libpq |
knox / Neon-readme-7.sh
0 likes
0 forks
1 files
Last active
1 | # recommended approach from https://www.rust-lang.org/tools/install |
2 | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh |
knox / Neon-readme-6.sh
0 likes
0 forks
1 files
Last active
1 | brew install m4 |
2 | brew link --force m4 |
knox / Neon-readme-5.sh
0 likes
0 forks
1 files
Last active
1 | xcode-select --install |
2 | brew install protobuf openssl flex bison icu4c pkg-config m4 |
3 | |
4 | # add openssl to PATH, required for ed25519 keys generation in neon_local |
5 | echo 'export PATH="$(brew --prefix openssl)/bin:$PATH"' >> ~/.zshrc |
knox / Neon-readme-4.sh
0 likes
0 forks
1 files
Last active
1 | # recommended approach from https://www.rust-lang.org/tools/install |
2 | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh |