Aw: BUG #17647: 12.12 package has difference on ubuntu 18.04

From: Mike Fröhner <mikefroehner(at)gmx(dot)de>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Aw: BUG #17647: 12.12 package has difference on ubuntu 18.04
Date: 2022-10-18 08:19:20
Message-ID: trinity-aee76dd0-5787-4adc-8c24-ce1a081277fa-1666081158225@msvc-mesg-gmx003
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


<html>
<head>
<meta name="viewport" content="width=device-width">
<meta http-equiv="Content-Type" content="text/vnd.ui.insecure+html;charset=utf-8">
</head>
<body style="overflow-wrap:break-word; word-break: break-word;"><div class="mail_android_message" style="line-height: 1; padding: 0.5em">Hello<br/><br/>I have made some deeper investigation:<br/><br/>Steps to reproduce:<br/><br/>```<br/>docker pull ubuntu:18.04 &amp;&amp; docker run -it --rm ubuntu:18.04 bash<br/>## or<br/>docker pull ubuntu:20.04 &amp;&amp; docker run -it --rm ubuntu:20.04 bash<br/>## or<br/>docker pull ubuntu:22.04 &amp;&amp; docker run -it --rm ubuntu:22.04 bash<br/><br/><br/>apt-get update<br/>apt-get install -y vim strace less curl ca-certificates gnupg sudo lsb-release<br/><br/>curl <a href="https://www.postgresql.org/media/keys/ACCC4CF8.asc">https://www.postgresql.org/media/keys/ACCC4CF8.asc</a> | gpg --dearmor | sudo tee /etc/apt/<a href="http://trusted.gpg">trusted.gpg</a>.d/<a href="http://apt.postgresql.org.gpg">apt.postgresql.org.gpg</a> &gt;/dev/null<br/><br/>sh -c &#39;echo &quot;deb <a href="http://apt.postgresql.org/pub/repos/apt">http://apt.postgresql.org/pub/repos/apt</a> $(lsb_release -cs)-pgdg main&quot; &gt; /etc/apt/<a href="http://sources.list">sources.list</a>.d/<a href="http://pgdg.list">pgdg.list</a>&#39;<br/>apt-get update<br/>apt-get install -y postgresql-12<br/><br/>pg_ctlcluster 12 main start<br/><br/>sudo -u postgres -i<br/>psql<br/>CREATE DATABASE database_name;<br/>CREATE USER my_username WITH PASSWORD &#39;my_password&#39;;<br/>GRANT ALL PRIVILEGES ON DATABASE &quot;database_name&quot; to my_username;<br/>exit<br/><br/>echo &#39;*:*:*:my_username:my_password&#39; &gt; .pgpass<br/>chmod 0600 .pgpass<br/>exit<br/><br/>##<br/>## this does not work for ubuntu 18.04 but for ubuntu 20.04/22.04<br/>##<br/>/usr/bin/sudo -u postgres psql -U my_username -h <a href="http://127.0.0.1">127.0.0.1</a> database_name -c &quot;CREATE TABLE foo (foo char);&quot;<br/><br/>##<br/>## this works for all<br/>##<br/>sudo -u postgres -i<br/>psql -U my_username -h <a href="http://127.0.0.1">127.0.0.1</a> database_name -c &quot;CREATE TABLE foo (foo char);&quot;<br/>```<br/><br/>We have narrowed it down to three packages which have been upgraded on ubuntu 18.04 between working and broken state:<br/>- `libpq5` upgraded from `14.5-1.pgdg18.04+1` to `15.0-1.pgdg18.04+1`<br/>- `postgresql-client-common` and `postgresql-common` from `243.pgdg18.04+1` to `244.pgdg18.04+1`<br/><br/>None other packages have been upgraded (incl. ubuntu repo packages)!<br/><br/>For me it does look like a bug with in psql client package.<br/><br/>regards<br/>Mike<br/><br/>--<br/>Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.</div><div class="mail_android_quote" style="line-height: 1; padding: 0.3em"><html><body>Am 17.10.22, 16:19 schrieb PG Bug reporting form &lt;noreply(at)postgresql(dot)org&gt;:</body></html><blockquote class="gmail_quote" style="margin: 0.8ex 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

The following bug has been logged on the website:
<br>
<br> Bug reference: 17647
<br> Logged by: Mike Fröhner
<br> Email address: mikefroehner(at)gmx(dot)de
<br> PostgreSQL version: 12.12
<br> Operating system: Ubuntu 18.04
<br> Description:
<br>
<br> Hello,
<br>
<br> today our CI noticed the upgrade of PostgreSQL to 12.12. We have a CI/CD
<br> which tests our Puppet Module against Ubuntu 16./18./20./22.04. We run
<br> different tests (kitchen-ci) including the following:
<br> ```
<br> describe command('/usr/bin/sudo -u postgres psql -U myuser1 -h 127.0.0.1
<br> mydb1 -c "CREATE TABLE foo (foo char);"') do
<br> its('exit_status') { should eq 0 }
<br> its('stdout') { should eq "CREATE TABLE\n" }
<br> its('stderr') { should eq '' }
<br> end
<br> ```
<br> Therefore we rollout a DB and a user via:
<br> ```
<br> postgresql::databases:
<br> 'mydb1':
<br> user: myuser1
<br> password: mypassword1
<br> host: 127.0.0.1/32
<br> ```
<br> We also rollout a file:
<br> ```
<br> '/var/lib/postgresql/.pgpass':
<br> owner: postgres
<br> group: postgres
<br> mode: '0600'
<br> content: '*:*:*:myuser1:mypassword1'
<br> require_class: postgresql
<br> ```
<br> This test only fails/times out on Ubuntu 18.04 because it is waiting for a
<br> password input. With all other Ubuntu (16./20./22.04) this test succedds. Is
<br> there anything wrong with my test or is the package for Ubuntu 18.04 broken?
<br>
<br>
</blockquote></div></body>
</html>

Attachment Content-Type Size
unknown_filename text/html 4.5 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2022-10-18 09:17:05 BUG #17649: With libpg5 15.0 psql 10.22 uses HOME variable instead of uid and /etc/passwd to select .pgpass file
Previous Message Ilya Anfimov 2022-10-17 15:15:57 Re: BUG #17646: create rule named "_RETURN" will cause pg core