Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC7Q5-0002UK-Eu for psycopg@arkaria.postgresql.org; Mon, 15 Oct 2018 18:16:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gC7Q3-0000Jh-DG for psycopg@arkaria.postgresql.org; Mon, 15 Oct 2018 18:16:43 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gC7Q3-0000Ja-2l for psycopg@lists.postgresql.org; Mon, 15 Oct 2018 18:16:43 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gC7Q0-0006TV-CD for psycopg@postgresql.org; Mon, 15 Oct 2018 18:16:41 +0000 Received: by mail-lj1-x232.google.com with SMTP id j4-v6so18376414ljc.12 for ; Mon, 15 Oct 2018 11:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=WuOhJBOMHDBVkB/+Y5aukRk9mqaJPksSqGXsKTzBCsg=; b=mKGwJKdVYfPb8xfuEkkTxu6sA1US/TCPKb08kCghjgV/rNkkkDfC6v95ay6IScMByb qE2h2npOBsYL0bPH2ch+s48PVq99/tNDlZORgIwlGYIi36jGFpNOzrJYZFewbzCFYXS2 WZgaWbla7Sd6SqRM67nmiOmFYX7wICToeDsWujQ4kAJQmjJkiMUzd+/zA3uedk8qYpMw vck0GN7LMV4/Lqc/4kuzZrLET42ooRpeoO+C2zTL0xyLb6pjLnw7vEX/CZ4I2LwHxPkA qx8QVnMNM+yjB1M/wn4UY6zRjI2Dc2YWX9c3a7FNgRFaSGk6k8JlWk0HcBPb1vsej1pp CcYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=WuOhJBOMHDBVkB/+Y5aukRk9mqaJPksSqGXsKTzBCsg=; b=WfyOTiSGbmNsSuVty1wWJtJINCYArr/UHCQSF25bjrlkhiOkB14c92G7uhtV+Axsln mk+pt1Fja5QdEwIjaV7SjFlXXzBBph5Xm6j/tMYe603LEBiiuBq1l6h4OpSLfLehD832 XaJGn9QbL8w8sV3dtZCQJ0fNwx9fMi9RS2k0ABRm/tw+xdGIUGECgErsXYTQtSeTBtFe OkmPW3yFjwyEHPC+NJ2KUyJuObdWQV4mD39PL482JmvwBIGp0BL20IImjqLHP9L9Z8o1 QBL94EI6jMwSdSrT24kJ2Jh7OOwKyaCiLms36048hPhkVJ9J25qI0mEk5KW2enf3I3Z6 77LA== X-Gm-Message-State: ABuFfohqWupu4l/IoeRB9OW1hCS35VU6mDBfF7DUTTKB+jrqsOQdeKl7 KaW+zhx7nnM0dOegqAT8jo3myrrJOHMbEIRm6NE= X-Google-Smtp-Source: ACcGV607SXRZH+6IwwrQqZJUvGJeuGj+uXdBmpLz/Iv5ot5d7CgCcmBMSN39vTJvdNsulWcxp7ZJgK8og+FDY57Ydgk= X-Received: by 2002:a2e:9a4d:: with SMTP id k13-v6mr11616843ljj.17.1539627398591; Mon, 15 Oct 2018 11:16:38 -0700 (PDT) MIME-Version: 1.0 References: <20181015121154.GC2008@hermes.hilbert.loc> <20181015174247.GF2008@hermes.hilbert.loc> In-Reply-To: <20181015174247.GF2008@hermes.hilbert.loc> From: Daniele Varrazzo Date: Mon, 15 Oct 2018 19:16:27 +0100 Message-ID: Subject: Re: Feature branches merged to master for 2.8 release To: psycopg@lists.postgresql.org, psycopg@postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Oct 15, 2018 at 6:43 PM Karsten Hilbert wrote: > I would then stick with UniqueViolation. > > Perhaps an attribute > > UniqueViolation.pg_error_name = unique_violation > > so people _can_ know what to grep for ? It makes sense of course. And I was hoping it was available in the diag object [1]. But apparently it's not... So good call: I'll try to add it to the classes. [1] http://initd.org/psycopg/docs/extensions.html#psycopg2.extensions.Diagnostics -- Daniele