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 1mQQQl-0003Oh-Sm for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 08:38:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQQQi-0006mP-R4 for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 08:38:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQQQi-0006mG-EJ for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 08:38:08 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mQQQf-0007AI-VI for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 08:38:07 +0000 Received: by mail-pj1-x1034.google.com with SMTP id mi6-20020a17090b4b4600b00199280a31cbso3763540pjb.0 for ; Wed, 15 Sep 2021 01:38:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=m9X5rRVvQ9za0URujl0UyrUmEo/nlpWxZ36kS4Fk+Ww=; b=RaIxFjXWJvSzN1HDlV7cygoLmoE6xeWe/riqyL+Z1LG6qNqBrjK/3bkDYl+jxGMzS7 oesq+mCMlK+3BkUC5O03C6xGzsRiuuVmZ0D0gkSOUYKINrAv+FBpy5YDpWNt5CvFvzvv M63AnTBvl75HVFG420dadZ80GbQuXLQE7JT8OuSA8GWlaAkFlVgQ9sF4EcooNXiSepJZ PKBlMv1QdA27SEA3vlui8QuPjnNq0ly6H6HVMMNLkVLT+NJv6et/z1FZL3zygNTLjbSy plHDyyrhtuMP3+LSq7Tp4HRVrivOBwbUGOq7uYhtICZaPB4YwlUlmyLrk1oPgWitkxvO Ii3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=m9X5rRVvQ9za0URujl0UyrUmEo/nlpWxZ36kS4Fk+Ww=; b=RW8t6VpLH/sQyb4UO4psJLQecFMAeuym+fmnG3Qz0Zzfwp7OOtuFLkbBH3i1LapzXA zTvoKRMOfhsAI9M7xQbDBi42/fWAMrfBfPxxMcgECkG8MJhqiHDcAGX5qOGvr1MvxtVi ftg9fUhJ3UEu8D2WsbbePyeOKv5gWpZe3SMtyJhA6yzZWbvO89ZrvnyPgJizf00PZh6j pYulepxtqziD/fDNCJdqRTVDKgJKAzd9BMHFGwun91jMc62fO2Bc0JW3NESuF9gFUPSh c/rlAGOEn3z1DPi/e1upHkQv4hRFWFVn3fSG1sC6AG4uvNiTJfGAUVKz+hAHNCVPZm6E 1PRg== X-Gm-Message-State: AOAM533agWcsufwIdlo3ekoGeeoMIL5ZMOaliX07QTnItw8uds4ms96H sp1twbtxdlq6rVsFjRysb7E= X-Google-Smtp-Source: ABdhPJzpdnnKIgAfUsGVBlVHpocUgszFZTvA+WUp6uYZgbZeovhXlqlr7jFtWBXb42D9+CXVTKgTPQ== X-Received: by 2002:a17:902:82c2:b0:13c:916b:96a with SMTP id u2-20020a17090282c200b0013c916b096amr2693222plz.61.1631695084009; Wed, 15 Sep 2021 01:38:04 -0700 (PDT) Received: from 192-168-1-125.tpgi.com.au ([124.170.26.69]) by smtp.gmail.com with ESMTPSA id s38sm7759318pfw.209.2021.09.15.01.38.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Sep 2021 01:38:03 -0700 (PDT) Message-ID: <61c72117499fc76f99542e2c889e8841b6e2db49.camel@gmail.com> Subject: Re: Basic Questions about PostgreSQL. From: rob stone To: A Z , "pgsql-general@lists.postgresql.org" Date: Wed, 15 Sep 2021 18:38:00 +1000 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2021-09-15 at 05:10 +0000, A Z wrote: > -In PostgreSQL, what is the difference between Roles, Groups, and > Policies exactly? What are they each, how do they relate to one > another, and which one(s) can be assigned to another? > > -Is there a simple, immediate, straightforward way to temporarily > disable PostgreSQL database > use of all other users, except development users, or in fact just one > user (one developer, yourself) > so that maintenance on the data or the data model may be performed? > Read https://www.postgresql.org/docs/13/app-postgres.html#id-1.9.5.14.6.5 about single user mode. You shut down the cluster and run psql in single user mode. After you quit out of single user mode, restart. HTH, Rob