Skip to content

Commit 163a76c

Browse files
committed
download/linux: Bump recommended package to postgresql-18
This bumps the version from 17 to 18 and also splits the final "apt install" call into a separate box since the heading only claims to configure the repository. We also replace "postgresql" by "postgresql-18" since users of our repo will likely want to have control over which version is selected.
1 parent 1cc4675 commit 163a76c

File tree

3 files changed

+29
-16
lines changed

3 files changed

+29
-16
lines changed

media/js/download.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ function setupHandlers() {
2727
copyScript(this, 'script-box2');
2828
});
2929
}
30+
if (document.getElementById("copy-btn3") && document.getElementById("script-box3")) {
31+
document.getElementById('copy-btn3').addEventListener('click', function () {
32+
copyScript(this, 'script-box3');
33+
});
34+
}
3035
}
3136

3237
document.addEventListener("DOMContentLoaded", setupHandlers);

templates/pages/download/linux/debian.html

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,17 @@ <h2>PostgreSQL Apt Repository</h2>
7777

7878
# Update the package lists:
7979
sudo apt update
80-
81-
# Install the latest version of PostgreSQL:
82-
# If you want a specific version, use 'postgresql-17' or similar instead of 'postgresql'
83-
sudo apt -y install postgresql</pre>
8480
<button id="copy-btn2" class="pg-script-copy-btn">Copy Script</button>
8581
</div>
8682

83+
Install PostgreSQL: (replace "18" by the version you want)
84+
85+
<div class="pg-script-container">
86+
<pre id="script-box3" class="code"># Import the repository signing key:
87+
sudo apt install postgresql-18</pre>
88+
<button id="copy-btn3" class="pg-script-copy-btn">Copy Script</button>
89+
</div>
90+
8791
<p>
8892
For more information about the apt repository, including answers to frequent
8993
questions, please see the
@@ -99,23 +103,23 @@ <h2>Packages</h2>
99103
<table class="table table-striped">
100104
<tbody>
101105
<tr>
102-
<th scope="row">postgresql-client-17</th>
106+
<th scope="row">postgresql-client-18</th>
103107
<td>client libraries and client binaries</td>
104108
</tr>
105109
<tr>
106-
<th scope="row">postgresql-17</th>
110+
<th scope="row">postgresql-18</th>
107111
<td>core database server</td>
108112
</tr>
109113
<tr>
110-
<th scope="row">postgresql-doc-17</th>
114+
<th scope="row">postgresql-doc-18</th>
111115
<td>documentation</td>
112116
</tr>
113117
<tr>
114118
<th scope="row">libpq-dev</th>
115119
<td>libraries and headers for C language frontend development</td>
116120
</tr>
117121
<tr>
118-
<th scope="row">postgresql-server-dev-17</th>
122+
<th scope="row">postgresql-server-dev-18</th>
119123
<td>libraries and headers for C language backend development</td>
120124
</tr>
121125
</tbody>

templates/pages/download/linux/ubuntu.html

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,17 @@ <h2>PostgreSQL Apt Repository</h2>
7676

7777
# Update the package lists:
7878
sudo apt update
79-
80-
# Install the latest version of PostgreSQL:
81-
# If you want a specific version, use 'postgresql-17' or similar instead of 'postgresql'
82-
sudo apt -y install postgresql</pre>
8379
<button id="copy-btn2" class="pg-script-copy-btn">Copy Script</button>
8480
</div>
8581

82+
Install PostgreSQL: (replace "18" by the version you want)
83+
84+
<div class="pg-script-container">
85+
<pre id="script-box3" class="code"># Import the repository signing key:
86+
sudo apt install postgresql-18</pre>
87+
<button id="copy-btn3" class="pg-script-copy-btn">Copy Script</button>
88+
</div>
89+
8690
<p>
8791
For more information about the apt repository, including answers to frequent
8892
questions, please see the
@@ -98,23 +102,23 @@ <h2>Packages</h2>
98102
<table class="table table-striped">
99103
<tbody>
100104
<tr>
101-
<th scope="row">postgresql-client-17</th>
105+
<th scope="row">postgresql-client-18</th>
102106
<td>client libraries and client binaries</td>
103107
</tr>
104108
<tr>
105-
<th scope="row">postgresql-17</th>
109+
<th scope="row">postgresql-18</th>
106110
<td>core database server</td>
107111
</tr>
108112
<tr>
109-
<th scope="row">postgresql-doc-17</th>
113+
<th scope="row">postgresql-doc-18</th>
110114
<td>documentation</td>
111115
</tr>
112116
<tr>
113117
<th scope="row">libpq-dev</th>
114118
<td>libraries and headers for C language frontend development</td>
115119
</tr>
116120
<tr>
117-
<th scope="row">postgresql-server-dev-17</th>
121+
<th scope="row">postgresql-server-dev-18</th>
118122
<td>libraries and headers for C language backend development</td>
119123
</tr>
120124
</tbody>

0 commit comments

Comments
 (0)