download/linux: Bump recommended package to postgresql-18
authorChristoph Berg <myon@debian.org>
Tue, 30 Sep 2025 14:36:52 +0000 (16:36 +0200)
committerChristoph Berg <myon@debian.org>
Tue, 30 Sep 2025 14:36:52 +0000 (16:36 +0200)
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.

media/js/download.js
templates/pages/download/linux/debian.html
templates/pages/download/linux/ubuntu.html

index 8493ef0683f6d25769e322c1218a86c3fa12ecdd..60bc9f6ee805bd58badafa1c1eb414378a1ae1a8 100644 (file)
@@ -27,6 +27,11 @@ function setupHandlers() {
             copyScript(this, 'script-box2');
         });
     }
+    if (document.getElementById("copy-btn3") && document.getElementById("script-box3")) {
+        document.getElementById('copy-btn3').addEventListener('click', function () {
+            copyScript(this, 'script-box3');
+        });
+    }
 }
 
 document.addEventListener("DOMContentLoaded", setupHandlers);
index 0f6829b774015e15e539bbc862fd9a35ce5c7ce9..bc1d930b1fdc9be8d73e8552e900c0a5d2198392 100644 (file)
@@ -77,13 +77,17 @@ sudo sh -c "echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresq
 
 # Update the package lists:
 sudo apt update
-
-# Install the latest version of PostgreSQL:
-# If you want a specific version, use 'postgresql-17' or similar instead of 'postgresql'
-sudo apt -y install postgresql</pre>
     <button id="copy-btn2" class="pg-script-copy-btn">Copy Script</button>
 </div>
 
+Install PostgreSQL: (replace "18" by the version you want)
+
+<div class="pg-script-container">
+    <pre id="script-box3" class="code"># Import the repository signing key:
+sudo apt install postgresql-18</pre>
+    <button id="copy-btn3" class="pg-script-copy-btn">Copy Script</button>
+</div>
+
 <p>
 For more information about the apt repository, including answers to frequent
 questions, please see the
@@ -99,15 +103,15 @@ version number as required):
 <table class="table table-striped">
   <tbody>
     <tr>
-     <th scope="row">postgresql-client-17</th>
+     <th scope="row">postgresql-client-18</th>
      <td>client libraries and client binaries</td>
     </tr>
     <tr>
-     <th scope="row">postgresql-17</th>
+     <th scope="row">postgresql-18</th>
      <td>core database server</td>
     </tr>
     <tr>
-     <th scope="row">postgresql-doc-17</th>
+     <th scope="row">postgresql-doc-18</th>
      <td>documentation</td>
     </tr>
     <tr>
@@ -115,7 +119,7 @@ version number as required):
      <td>libraries and headers for C language frontend development</td>
     </tr>
     <tr>
-     <th scope="row">postgresql-server-dev-17</th>
+     <th scope="row">postgresql-server-dev-18</th>
      <td>libraries and headers for C language backend development</td>
     </tr>
   </tbody>
index fdc1aa2792e97a9da3d07d98ce378e78f9c193a8..2ac40b9ba14d53e27a4adf743cab8abd84df42b1 100644 (file)
@@ -76,13 +76,17 @@ sudo sh -c "echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresq
 
 # Update the package lists:
 sudo apt update
-
-# Install the latest version of PostgreSQL:
-# If you want a specific version, use 'postgresql-17' or similar instead of 'postgresql'
-sudo apt -y install postgresql</pre>
     <button id="copy-btn2" class="pg-script-copy-btn">Copy Script</button>
 </div>
 
+Install PostgreSQL: (replace "18" by the version you want)
+
+<div class="pg-script-container">
+    <pre id="script-box3" class="code"># Import the repository signing key:
+sudo apt install postgresql-18</pre>
+    <button id="copy-btn3" class="pg-script-copy-btn">Copy Script</button>
+</div>
+
 <p>
 For more information about the apt repository, including answers to frequent
 questions, please see the
@@ -98,15 +102,15 @@ version number as required):
 <table class="table table-striped">
   <tbody>
     <tr>
-     <th scope="row">postgresql-client-17</th>
+     <th scope="row">postgresql-client-18</th>
      <td>client libraries and client binaries</td>
     </tr>
     <tr>
-     <th scope="row">postgresql-17</th>
+     <th scope="row">postgresql-18</th>
      <td>core database server</td>
     </tr>
     <tr>
-     <th scope="row">postgresql-doc-17</th>
+     <th scope="row">postgresql-doc-18</th>
      <td>documentation</td>
     </tr>
     <tr>
@@ -114,7 +118,7 @@ version number as required):
      <td>libraries and headers for C language frontend development</td>
     </tr>
     <tr>
-     <th scope="row">postgresql-server-dev-17</th>
+     <th scope="row">postgresql-server-dev-18</th>
      <td>libraries and headers for C language backend development</td>
     </tr>
   </tbody>