From: | ZhenHua Cai <zhhua(dot)cai(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: PostgreSQL - unrecognized win32 error code: 38 |
Date: | 2019-10-29 01:15:35 |
Message-ID: | CABuU89PVEOXSShPH6RSSunb_wh=mxQDvAOabdTOzDfepbaCR1w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
No, it doesn't call any in-core code.
The following is the code in that function
DROP TABLE IF EXISTS "GenericReadList" ;
CREATE TEMP TABLE "GenericReadList"(
"ComputerProfileId" int NOT NULL,
"Trustee" uuid NOT NULL,
"AccessControlType" smallint NULL,
"AceOrder" int NULL
);
INSERT INTO "GenericReadList"
SELECT t1."ComputerProfileId", t1."Trustee", t1."AccessControlType",
t1."AceOrder" FROM
(
SELECT a."ComputerProfileId", s."ADUser" "Trustee", a."AccessControlType",
a."AceOrder" FROM "TmpResult" r
INNER JOIN "TmpTrusteeSid" s ON s."ADUser" = r."Trustee"
INNER JOIN "AccessRights" a ON a."TrusteeSid" = s."Sid" AND
r."ComputerProfileId" = a."ComputerProfileId" AND a."AccessRight" = 4
) t1
On Mon, Oct 28, 2019 at 5:56 PM Michael Paquier <michael(at)paquier(dot)xyz> wrote:
> On Mon, Oct 28, 2019 at 09:51:07AM -0700, ZhenHua Cai wrote:
> > The following is the SQL statement of that function.
> >
> > DROP TABLE IF EXISTS "GenericReadList" ;
> > CREATE TEMP TABLE "GenericReadList"(
> > "ComputerProfileId" int NOT NULL,
> > "Trustee" uuid NOT NULL,
> > "AccessControlType" smallint NULL,
> > "AceOrder" int NULL
> > );
>
> The original complain comes from a function called ComputeComputer.
> What does it do and where does it come from? Does it call any in-core
> code which would cause the failure. If the function is a SQL
> function, could you provide a self-contained test case?
> --
> Michael
>
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2019-10-29 11:13:49 | Re: PostgreSQL - unrecognized win32 error code: 38 |
Previous Message | Michael Paquier | 2019-10-29 00:55:48 | Re: PostgreSQL - unrecognized win32 error code: 38 |