pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Patil, Prashant <Prashant.Patil@crowncastle.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Postgres Security Patches Question
Date: Wed, 24 Apr 2019 10:57:50 -0400
Message-ID: <12413.1556117870@sss.pgh.pa.us> (raw)
In-Reply-To: <6c9b95c3-5136-186e-ca61-cc0f4230e326@aklaver.com>
References: <DM5PR13MB13398873DDCBA28E4A3D58A0933C0@DM5PR13MB1339.namprd13.prod.outlook.com>
	<6c9b95c3-5136-186e-ca61-cc0f4230e326@aklaver.com>

[ removing security list, since this is not a security bug report ]

Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 4/24/19 7:30 AM, Patil, Prashant wrote:
>> ... If there is any security patch that need to apply on postgres 
>> database in future, 1. Would security patch available in form of source 
>> code/zip file OR do we have to apply it using rpm? 2. If rpm, would it 
>> be possible to install security patch on postgres custom directories 
>> through RPM? 3. Any caveat that we need to aware about?

> AFAIK the patches are not released separately. In your case you would 
> need to download the new patched complete source and rebuild it.

We do not release security patches separately, and are not interested
in doing so.  Two points you might wish to consider:

* Security patches are not tested standalone, only on top of the complete
patch-series-to-date.  There's no certainty they'd even apply to an
earlier snapshot, let alone work as intended.

* For most database installations, data-loss-risk bugs are at least
as important as "security" bugs, maybe more so.  The vast majority
of the things we label security bugs are privilege escalation problems
accessible to someone who is already able to log into the database and
execute arbitrary SQL.  But few installations have untrusted users
connecting directly to the database, so these sorts of bug fixes are
really just limiting the possible effects of any security loopholes
(e.g. SQL-injection bugs) you may have in your applications.  Which is a
good thing surely, but it pales compared to "this bug might corrupt all
your data".

The PG community's recommendation is that you install new minor releases
in toto.  Anybody who thinks it's better to just cherry-pick "security"
patches doesn't understand the realities of database work.

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <12413.1556117870@sss.pgh.pa.us>
Permalink:  ../12413.1556117870@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/12413.1556117870@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, Prashant.Patil@crowncastle.com
  Subject: Re: Postgres Security Patches Question
  In-Reply-To: <12413.1556117870@sss.pgh.pa.us>
  References: <DM5PR13MB13398873DDCBA28E4A3D58A0933C0@DM5PR13MB1339.namprd13.prod.outlook.com> <6c9b95c3-5136-186e-ca61-cc0f4230e326@aklaver.com> <12413.1556117870@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox