Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDpII-0004df-6W for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Jul 2022 15:37:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oDpIH-0006Ff-48 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Jul 2022 15:37:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDpIG-0006Ct-PO for pgsql-hackers@lists.postgresql.org; Tue, 19 Jul 2022 15:37:52 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oDpIE-0001sr-IH for pgsql-hackers@lists.postgresql.org; Tue, 19 Jul 2022 15:37:52 +0000 Received: by mail-ot1-x32b.google.com with SMTP id k8-20020a9d4b88000000b0061c7f8c4f77so11003131otf.10 for ; Tue, 19 Jul 2022 08:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3BaoqVlYzeNZVUcp8scSJErqR2TIA9iflrjBhA/4hDM=; b=Rn3OUfApPFyJotLGgTrC1R3PGOXILr/6RPvK+rR/T+eoVtOeJ0Os23HBmlK24Tmirz 86NYGC42L+j+tv9IHNKECU1H6AzpjYcrnMwuRKucec5PHw4BJxlEiQLtBcDx/+xs78vr p4pbUNgZQ7AitGh45ew4VPzGf+uPCptTIncuPtVZsz5iI5EI6kvGiBB5Su4yNLdmc+kB +YSD+Kv9l9p30L9pi/HS3LeG1uf08s6y8pli3AVCVnSm1SnG/9ehwnJKohsqNpMa3Gxu d1gHd5huBhLIBgWb9QwO7e+0vuX5YuzUGl2MnUyQoG/6gKKTuUT4UbNkB/h+v5cWEO1i JCQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3BaoqVlYzeNZVUcp8scSJErqR2TIA9iflrjBhA/4hDM=; b=M4DStgSINfFgOJETMl3vV4kSfWkRVY6brCMFg1KXE43SRMU2zBt7eP/5FVpUb8CR3R EXgmbXiDdOoZo8aBnLIXd1DFRAbLWuWErQY5CxePge7Z571dTF+rf6EBOnvwHgBXywW5 LDelrGMMrOeJRpKKKx0y5x+0dgdnXAjJ1AYz7EWyozqL/BxxVbrbs5NaDJvqLwd4q6yS sW8Y8k6UB2/hTsLM8xEav/dCDoyT0HAZZHpimclotC3hpuAeOicIWvZnDN9JISC3zEO9 unmNIEvJzm1xEFXc7cKxRFdeq4uIwtEJs2y23vAAzIcQ7C1Dw9j07Fa4Tg7NePYjH0X4 1Jkg== X-Gm-Message-State: AJIora8otUEV/cFBIOX0Do2Gmfx277wPKElf5cp7yqTTulr6Tsmy+jpf MYageTYkqsszlmoYvv1HDWpnzyGw2pYSHrQ82Xk= X-Google-Smtp-Source: AGRyM1uGi+GcjUvmjR6IkvcLCH4k6RmfaNQiWb1KYN/PlHY5LNxtXiAIVDdTE7ZisIsPe/m7KbEXlUPh89Jr5/L/EHM= X-Received: by 2002:a9d:70cd:0:b0:61c:9245:fbf6 with SMTP id w13-20020a9d70cd000000b0061c9245fbf6mr6822090otj.75.1658245068693; Tue, 19 Jul 2022 08:37:48 -0700 (PDT) MIME-Version: 1.0 References: <1057666.1658238352@sss.pgh.pa.us> <20220719142807.2zex4cczycc5nqq5@alvherre.pgsql> <20220719153149.lhbir3wh4sgfkfe7@awork3.anarazel.de> In-Reply-To: <20220719153149.lhbir3wh4sgfkfe7@awork3.anarazel.de> From: Pavel Stehule Date: Tue, 19 Jul 2022 17:37:11 +0200 Message-ID: Subject: Re: pgsql: Default to hidden visibility for extension libraries where possi To: Andres Freund Cc: Alvaro Herrera , Tom Lane , PostgreSQL Hackers Content-Type: multipart/alternative; boundary="00000000000045246b05e42a44c5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000045246b05e42a44c5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi =C3=BAt 19. 7. 2022 v 17:31 odes=C3=ADlatel Andres Freund napsal: > Hi, > > On 2022-07-19 16:28:07 +0200, Alvaro Herrera wrote: > > Anyway, the minimal patch that makes plpgsql_check tests pass is > > attached. This seems a bit random. Maybe it'd be better to have a > > plpgsql_internal.h with functions that are exported only for plpgsql > > itself, and keep plpgsql.h with a set of functions, all marked > > PGDLLEXPORT, that are for external use. > > It does seem a bit random. But I think we probably should err on the side > of > adding more declarations, rather than the oposite. > This list can be extended. I think plpgsql_check is maybe one extension that uses code from another extension directly. This is really not common usage. > > I like the plpgsql_internal.h idea, but probably done separately? > can be I have not any problem with it or with exports.txt file. > Greetings, > > Andres Freund > --00000000000045246b05e42a44c5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

=C3=BAt 19. 7. 2022 v=C2=A017:31 odes=C3=ADla= tel Andres Freund <andres@anarazel= .de> napsal:
Hi,

On 2022-07-19 16:28:07 +0200, Alvaro Herrera wrote:
> Anyway, the minimal patch that makes plpgsql_check tests pass is
> attached.=C2=A0 This seems a bit random.=C2=A0 Maybe it'd be bette= r to have a
> plpgsql_internal.h with functions that are exported only for plpgsql > itself, and keep plpgsql.h with a set of functions, all marked
> PGDLLEXPORT, that are for external use.

It does seem a bit random. But I think we probably should err on the side o= f
adding more declarations, rather than the oposite.
This list can be extended. I think plpgsql_check is maybe one e= xtension that uses code from another extension directly. This is really not= common usage.
=C2=A0

I like the plpgsql_internal.h idea, but probably done separately?

can be

I have not any p= roblem with it or with exports.txt file.



Greetings,

Andres Freund
--00000000000045246b05e42a44c5--