Skip to content

Commit ab55895

Browse files
committed
fix: It was decided to leave pljava disabled at #690 this commit disables the extension for now
1 parent fd609d6 commit ab55895

File tree

3 files changed

+29
-26
lines changed

3 files changed

+29
-26
lines changed

ansible-nix/tasks/stage2/setup-extensions.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
- name: pljava - libjvm.so location in postgresql.conf
2-
become: yes
3-
lineinfile:
4-
path: /etc/postgresql/postgresql.conf
5-
state: present
6-
line: pljava.libjvm_location = '/home/postgres/.nix-profile/lib/openjdk/lib/server/libjvm.so'
1+
# - name: pljava - libjvm.so location in postgresql.conf
2+
# become: yes
3+
# lineinfile:
4+
# path: /etc/postgresql/postgresql.conf
5+
# state: present
6+
# line: pljava.libjvm_location = '/home/postgres/.nix-profile/lib/openjdk/lib/server/libjvm.so'
7+
# It was decided to leave pljava disabled at https://github.com/supabase/postgres/pull/690 therefore removing this task
78

89
- name: pg_cron - set cron.database_name
910
become: yes

ansible-nix/tasks/stage2/stage2-setup-postgres.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
- name: Install openjdk11 for pljava from nix binary cache
2-
become: yes
3-
shell: |
4-
sudo -u postgres bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install nixpkgs#openjdk11"
5-
1+
# - name: Install openjdk11 for pljava from nix binary cache
2+
# become: yes
3+
# shell: |
4+
# sudo -u postgres bash -c ". /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh && nix profile install nixpkgs#openjdk11"
5+
# It was decided to leave pljava disabled at https://github.com/supabase/postgres/pull/690 therefore removing this task
66
- name: Install Postgres from nix binary cache
77
become: yes
88
shell: |
@@ -73,12 +73,13 @@
7373
owner: postgres
7474
group: postgres
7575

76-
- name: Ensure /usr/lib/postgresql/share/postgresql/pljava directory exists
77-
file:
78-
path: /usr/lib/postgresql/share/postgresql/pljava
79-
state: directory
80-
owner: postgres
81-
group: postgres
76+
# - name: Ensure /usr/lib/postgresql/share/postgresql/pljava directory exists
77+
# file:
78+
# path: /usr/lib/postgresql/share/postgresql/pljava
79+
# state: directory
80+
# owner: postgres
81+
# group: postgres
82+
# It was decided to leave pljava disabled at https://github.com/supabase/postgres/pull/690 therefore removing this task
8283

8384
- name: import pgsodium_getkey script
8485
template:
@@ -104,14 +105,15 @@
104105
state: link
105106
become: yes
106107

107-
- name: Create symbolic links from /home/postgres/.nix-profile/share/pljava to /usr/lib/postgresql/share/postgresql/pljava
108-
file:
109-
src: "{{ item }}"
110-
dest: "/usr/lib/postgresql/share/postgresql/pljava/{{ item | basename }}"
111-
state: link
112-
with_fileglob:
113-
- "/home/postgres/.nix-profile/share/pljava/*"
114-
become: yes
108+
# - name: Create symbolic links from /home/postgres/.nix-profile/share/pljava to /usr/lib/postgresql/share/postgresql/pljava
109+
# file:
110+
# src: "{{ item }}"
111+
# dest: "/usr/lib/postgresql/share/postgresql/pljava/{{ item | basename }}"
112+
# state: link
113+
# with_fileglob:
114+
# - "/home/postgres/.nix-profile/share/pljava/*"
115+
# become: yes
116+
# It was decided to leave pljava disabled at https://github.com/supabase/postgres/pull/690 therefore removing this task
115117

116118
- name: Create symbolic links from /home/postgres/.nix-profile/bin to /usr/bin
117119
file:

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
./nix/ext/wrappers/default.nix
133133
./nix/ext/supautils.nix
134134
./nix/ext/plv8.nix
135-
./nix/ext/pljava.nix
135+
#./nix/ext/pljava.nix it was decided to remove pljava from the list of extensions at https://github.com/supabase/postgres/pull/690 therefore removing this task
136136
];
137137

138138
#Where we import and build the orioledb extension, we add on our custom extensions

0 commit comments

Comments
 (0)