Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j5e7C-00005C-Oj for pgsql-general@arkaria.postgresql.org; Sat, 22 Feb 2020 23:23:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j5e7B-0006uc-C3 for pgsql-general@arkaria.postgresql.org; Sat, 22 Feb 2020 23:23:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j5e7A-0006s8-WC for pgsql-general@lists.postgresql.org; Sat, 22 Feb 2020 23:23:17 +0000 Received: from mail-ot1-x344.google.com ([2607:f8b0:4864:20::344]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j5e78-0007kk-Au for pgsql-general@lists.postgresql.org; Sat, 22 Feb 2020 23:23:16 +0000 Received: by mail-ot1-x344.google.com with SMTP id i6so5470602otr.7 for ; Sat, 22 Feb 2020 15:23:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=0bD0NhvNFDy17A6ROfjS9CtSkOF6PmP0J6GxELUlkts=; b=mLbttVVwan2jOdjdsd/J88DaLHam7Xv2N3TPHRRjC1Z24T7Fz1WKXwi/PGh7J4Ltnp 37AQW3tZgSOhJ8TJkk0v7swKF4iQerLh66Ly9SmWMXCdjklIzv3Hz+dpf4imkpMNgTTa 68IBMqzjV/u496c+S18O39cP0KBal0NQ7Ca4oSN0VMMPpb7vzn10yPLZs+XbAmEMsypR t8HY5yJV/oYDH9o/V+nSBJC5xVkVFCGFK5eWIY5k7ZB6wE1FaVH8J47/kLZknnaDUynQ dlVf0N+2w8DjFQRo0Y0cyAbTHaw/CfzZ/169QrRAWLxmQLy4Hwurd55kgB/sq2pjoWiq 2Msg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=0bD0NhvNFDy17A6ROfjS9CtSkOF6PmP0J6GxELUlkts=; b=gGtwKWjMreOggF6L/aSPYvS/58R8HlhLMNQ2iaGPe7nEWRxs2igVDkDXvTw81W6j/l AdkPPvYsqO9GuiVfmUEgabrE3idcY/YJsWtUOjq9D0iuGy/CTIFPftmVgT/5yAdls+V9 sKc8B7xkMzIc/U+KsGI6aCymU5IjvMExS7PGMrR5z6Qs1cJyxL3JSyge5FK702jkdHws Bvgc7mPWx0v5EZfOYT1LY6snUPkPi2+1a5dB2+2ffLdsEJAMZ+GsgCXbRa8qupa2BVGC wmQv0iZZiSRFtzucMbZCci43ojKvB5rM/EK0xpKVudH+NLlNt003KjUOYJPbC54Ls5g1 FbAw== X-Gm-Message-State: APjAAAVfp+PgMLK2Mh3ykzVcb3qQ/Exfq42RzU7Lfiqp4A8FhMlTWclC 4MaafVna870c3xPwKxLOS8hAmXTdCFk= X-Google-Smtp-Source: APXvYqyNTOCUNayqsZIQ9OSkMfn1HElWbRxH3h31yS57Yw5tufj7tU8DMigMwZtZv70nAu67JwnlNw== X-Received: by 2002:a05:6830:50:: with SMTP id d16mr34654914otp.166.1582413792630; Sat, 22 Feb 2020 15:23:12 -0800 (PST) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id n22sm2736585otj.36.2020.02.22.15.23.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Feb 2020 15:23:12 -0800 (PST) Subject: Re: How to get error message details from libpq based psqlODBC driver (regression) To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: Date: Sat, 22 Feb 2020 17:23:11 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/22/20 5:19 PM, Adrian Klaver wrote: > On 2/22/20 2:37 PM, Andrus wrote: >> Hi! >> >> I'm looking for a way to fix psqlODBC driver regression. >> >> Starting at psqlODBC 09.05.0100 when psqlODBC driver uses libpq for all >> operations (earlier versions used libpg only for authentication) ODBC client >> does not show error message details. >> >> For example, users got only generic error message like >> >>     Connectivity error: ERROR: insert or update on table "mytable" violates >>     foreign key constraint  "mytable_myfield_fkey >> >> Error message details like >> >>     Key (myfield)=(mykeyvalue) is not present in table "mymastertable".; >> >> are no more returned. >> >> How to detailed error message or at least only bad key value "mykeyvalue" >> which is returned in error message details ? >> [snip] > > What does the log_error_verbosity setting in postgresql.conf show? Does that affect what the ODBC driver sends back to the user? -- Angular momentum makes the world go 'round.