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 1pPLkF-0006PN-DN for pgsql-general@arkaria.postgresql.org; Tue, 07 Feb 2023 11:02:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pPLkD-0004d7-Jr for pgsql-general@arkaria.postgresql.org; Tue, 07 Feb 2023 11:02:37 +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 1pPLkD-0004cy-6T for pgsql-general@lists.postgresql.org; Tue, 07 Feb 2023 11:02:37 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pPLkB-0008Hc-6h for pgsql-general@postgresql.org; Tue, 07 Feb 2023 11:02:36 +0000 Received: by mail-wm1-x32a.google.com with SMTP id k8-20020a05600c1c8800b003dc57ea0dfeso12891403wms.0 for ; Tue, 07 Feb 2023 03:02:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:message-id:subject:date:mime-version:from :content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=bM/jR/VI4JmfEePMn5tpv/wpFkLN2tTVX19yMMfqE6E=; b=eWkq5WNej2W0nGB0zqDW4VGMYXSVR4rDXOzhiWE1V4x+byXFlJmPN7Syw2y6V229Oj y3ayrQP+6RHMNkNJ8IKMepzHKQj+YQJZjqBWskbG5FM9J0HdHkDaGlOHMk1jDFOMkFf9 T31GRVKLGni7EzlJcS4iAs2k639xub32rDQhuf8ld9Zc82ROLhAdeZ/SB5Gmyxtsee/q v23OTZUfWqjDfJEBFsxaM3sAiRYPBUO4f1h9GUey23ZdmpNVCHTpt4EqQwRDBrRC8Hn6 bBf8jzUUQNFXU+4miME5mKroyLIFRQsFoWp4OckuB/bpQjRLUG/5YfqlHQW7HeC4ACnE aW2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:message-id:subject:date:mime-version:from :content-transfer-encoding:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=bM/jR/VI4JmfEePMn5tpv/wpFkLN2tTVX19yMMfqE6E=; b=10Ia5VirzhI619+JYJGhSwr7O5hKIaZ2D31/JlT1l7imhBNMHj3z4kkIE8wB0TZgT8 AGYRf2Pfotgdiraozs/W6J8UFrKVB9qjGSdrTLyftm1N/2wioV9fi/9RXiVCHUSSp3W4 hFzJKEO4ZCF5z253S/tRLLILk4lIOQeWzLle/KfLGBpO/qt5dJYabpNHLHySAH998MKr EgKN4pDGKxG3xFhAhOb+3dHdOYyMeyYYs2vhu5VgHIbmV6R2O579h8DkDdNRs10B+h0j v5JDdMdmEmsiv2XoyXt5aUz4rxWgDPVtEV/vTuTyAYMZXFJO0poalPDyrpiNOSZQrBXu feQA== X-Gm-Message-State: AO0yUKV/rj9hJ5KTi0BmE7WtO663sMBFLzl411cX4YiRNOOxTmsZzAwR GgYo7dGCctX1BP2+ha6RNXdQ/mOKBdQ= X-Google-Smtp-Source: AK7set8JUg8rnXFdfay9ENiVjml5rkzpnjY3khddXlRnhABwZzlSgucbmGjMvACGIwrTszCKs3pVkQ== X-Received: by 2002:a05:600c:43d3:b0:3da:1357:4ca2 with SMTP id f19-20020a05600c43d300b003da13574ca2mr2860310wmn.11.1675767753219; Tue, 07 Feb 2023 03:02:33 -0800 (PST) Received: from smtpclient.apple ([185.170.224.189]) by smtp.gmail.com with ESMTPSA id n36-20020a05600c3ba400b003dc54eef495sm15295690wms.24.2023.02.07.03.02.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Feb 2023 03:02:32 -0800 (PST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: Joseph Kennedy Mime-Version: 1.0 (1.0) Date: Tue, 7 Feb 2023 12:02:21 +0100 Subject: PostgreSQL Message-Id: To: pgsql-general@postgresql.org X-Mailer: iPhone Mail (20D47) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I would like restrict access to sensitive or restricted information for some= users (eg. hide data of one or more clients for some database users). PostgreSQL allows to create security policy as Row-Level Security, policies b= ased on the querying user. Are there any other alternatives to RLS, are there any better solutions?? What are the advantages and disadvantages of RLS? How much RLS will cause a decrease in database performance? JK