Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eidsy-0005QO-Hu for pgsql-odbc@arkaria.postgresql.org; Mon, 05 Feb 2018 10:20:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eidsx-0007sN-6K for pgsql-odbc@arkaria.postgresql.org; Mon, 05 Feb 2018 10:20:27 +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.84_2) (envelope-from ) id 1ehHzV-0006YQ-S2 for pgsql-odbc@lists.postgresql.org; Thu, 01 Feb 2018 16:45:38 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ehHzT-0004Xz-Cl for pgsql-odbc@postgresql.org; Thu, 01 Feb 2018 16:45:36 +0000 Received: by mail-wm0-x22e.google.com with SMTP id 143so7137660wma.5 for ; Thu, 01 Feb 2018 08:45:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding:thread-index:content-language; bh=ybLN2h6NQ3tHr5WwCmfRshFV6nsfZzntVRLn9NO7EKY=; b=iXuXbifIk4jYuFbr3awTZcIpn8JPE8WebeFOku5FZ8W1B2vMNB2aM1DO9VEqhkbL8X imNNuoS1d6jL9xqOfVVAzhWKVyWpRbin9kgq5KOS5df64Q0x1lt+YAvhgpu8ecNgvo6d iSQE1golAJ/ArRw/a1vPOFh6GtejESIpSQHR4X7UcP5WeOOv4Ejmtc8+8KkLGOKqV5oY nWuOwFUiykE1FzZFHSXIXzwvQHcBH3l8nlHqGgyhQstQ+h0ZpD8Kws071KsktItqPPC/ DrQRbjM4W0eRcS2WTtP5kJVlASL2U225juhuLWHNbCWDImik8F3onIMi3unKVZNVd9RH 0q9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding:thread-index:content-language; bh=ybLN2h6NQ3tHr5WwCmfRshFV6nsfZzntVRLn9NO7EKY=; b=eB5u9UP3tPz9VTawJCC64nFFL2Mu5azgm4RjuIBu8sXb9DUf79OxbXl57L36355jqP y4GwILwnBe3zGniWH2/r44o6czlLJM6lvNPctYdaXPrQa4H0HdElM4zlmxaba1lSwfSg y/ALNwJJrShmX0hQIxgvwUoUHGoWNws+5Y1oI6rDSDtOacT5nIOJmxWF+Jc1KcE4Y+Pc PA/lg5CG0GQwLxGu3PVq7f6LG6E9PL9wF/TA2FyGQoW9k5PTRN4xLQj2jp0qsCmTYjVV gL4evW940fEsTRnz7/Htz6urbT2ChYfbHVRK0ulYCVgSg258uYaWVDIcFDEw6sM8oSsC Bk0A== X-Gm-Message-State: AKwxytcuYAl2fyMFqzi+x2iYbYZMDRUi2odk8j5lAPgp19mK0jY+qenX Do4SjR4fiWrPAKWEZB0= X-Google-Smtp-Source: AH8x224e78S2JHxlIZheEGRZ4+wdwRUM6HvA+S76v32+96pJN6c92jGFD5OYB9zXcS3nrCYZITx95Q== X-Received: by 10.28.133.129 with SMTP id h123mr28977530wmd.146.1517503532990; Thu, 01 Feb 2018 08:45:32 -0800 (PST) Received: from MODULA (x55b7e3c3.dyn.telefonica.de. [85.183.227.195]) by smtp.googlemail.com with ESMTPSA id 81sm324192wmi.26.2018.02.01.08.45.31 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 08:45:31 -0800 (PST) From: "Wolfgang Apolinarski" To: Subject: ODBC - Retrieving info messages - RAISE NOTICE Date: Thu, 1 Feb 2018 17:45:30 +0100 Message-ID: <005501d39b7c$12bf4010$383dc030$@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdObe18IIjoFZ6iEQ86BEJwRw8tR8A== Content-Language: de List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, When executing a PL/pgsql query using powershell with ODBC (yes, a = somehow special setup), it is possible to register to the event = "InfoMessage" (with Register-ObjectEvent) to retrieve all messages that = are created for example by using "RAISE NOTICE". While this works fine when using MS SQL and the SqlConnection (all print = statements are retrieved), it does not work with Postgres and the = OdbcConnection, here, only the last message ("3") is retrieved, when a = statement like DO $$ RAISE NOTICE '1'; RAISE NOTICE '2'; RAISE NOTICE '3'; END$$; is executed. Maybe this is a general constraint when using ODBC, but maybe I am doing = something terribly wrong (other than using powershell with Postgresql). Best regards, Wolfgang