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 1l4Ol3-00019s-Tr for pgsql-general@arkaria.postgresql.org; Tue, 26 Jan 2021 13:51:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l4Ol2-0000kW-Rh for pgsql-general@arkaria.postgresql.org; Tue, 26 Jan 2021 13:51:48 +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 1l4Ol2-0000cI-FL for pgsql-general@lists.postgresql.org; Tue, 26 Jan 2021 13:51:48 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l4Okv-0005u7-En for pgsql-general@lists.postgresql.org; Tue, 26 Jan 2021 13:51:48 +0000 Received: by mail-wr1-x430.google.com with SMTP id b5so16530202wrr.10 for ; Tue, 26 Jan 2021 05:51:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=T32JUu5ti0qc7jEsMSfZxNXg+dkVoFWS5erOsBPpsCY=; b=l2yItGaRvlQHlt1Wbqp8Byzn6kM+i3BBOLUHMi/t/eC9E6N0SljTV6sIBCAvtAmfBi 9KnavX1qPxvyOE54KBHKQaYrOLmkwpfXpFYPTz8bMwRRSRlpQzEJek5Dn7+U2sYcfCNv 0PatXY5uV69uWDqsGXwoq0oIVsWhDxTn5DCX+R66VzPmYdV57V8VVr37tUdg+OBBVN3x qCMGjGFl4TueOClk/3D1hgcNVmi9qqgdrAb1Cm7Yh8U4vYl2pw6Em31UTh7EfEYeBohd YMbKrz6PHgei3gIsMH0KSrC1EL/dnBM50SCqybRd4kv6c13qobQ2ZD7qZixV2H0+0qHP Yd1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=T32JUu5ti0qc7jEsMSfZxNXg+dkVoFWS5erOsBPpsCY=; b=K7WhMraOF0jGavBRdhMlxZHcJJlePAhZ3gH8O9H8FIX2/V9EqKDDWwc4HuVtlxovFI Mekzx6R5QYZpsjeB+4f8eIHAC9sssoMhfCClMjQ2aQ1Eigci+XHyqQ7wfkRxc7Q/gxm2 0hpEOgYm+4GouG7QPN6trwJq6jjRjWdgrGSjq+jI0uq1frGEVtG2aUvm8zzmbWbUSWut teT/YlAxMwW4i8YnsiTHZkXmW6CksvXnb2KlTgYG8Ifdhe569NEdhA7V2tPDhG284Kwc +9ohUiHX3hec/wOz7oj75FFEex85b3DhyjDJDDhTnSseTyV3YVIPL4rKPTBAdNg1STY0 sVrA== X-Gm-Message-State: AOAM530wKk5TM3WawZ5iEK+tMwiUCDHlr2ndMxyrb968Ca2pgXD92ihK UbXU0K8eG3vvz7edYxRS+TE= X-Google-Smtp-Source: ABdhPJyxVFP0oaiy+kplWwhGBnXtym7Rf8F4oB1PIaLdf8aW8kWPqA6MCDfmeMypRz1UF4muv7vBsA== X-Received: by 2002:adf:ce86:: with SMTP id r6mr6435746wrn.63.1611669100674; Tue, 26 Jan 2021 05:51:40 -0800 (PST) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id u10sm2195214wmj.40.2021.01.26.05.51.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2021 05:51:40 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\)) Subject: Re: How to keep format of views source code as entered? From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <9e6ab24a4a03449abdd9b1e26dde8179@MS-FRA-E13EX02.intl.ad.vzwcorp.com> Date: Tue, 26 Jan 2021 14:51:39 +0100 Cc: =?utf-8?Q?Cybertec_Sch=C3=B6nig_=26_Sch=C3=B6nig_GmbH?= , Adam Brusselback , "David G. Johnston" , raf , "pgsql-generallists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <9e6ab24a4a03449abdd9b1e26dde8179@MS-FRA-E13EX02.intl.ad.vzwcorp.com> To: "Markhof, Ingolf" X-Mailer: Apple Mail (2.3654.40.0.2.32) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Ingolf, > On 26. Jan, 2021, at 14:41, Markhof, Ingolf = wrote: >=20 > You may not be able to delete tables / views that are referenced by = other users objects, e.g. views. Unless you add the CASCADE option which = will cause all depending views to be deleted as well. And the CASCASE = will work and delete the other users view even when you don't have the = permission to drop that other users view! >=20 > Looks like the Oracle concept of marking views as invalid makes some = sense... yes, PostgreSQL's and Oracle's approaches IMHO both make perfect sense = in their own way, depending on your design philosophy. I never said = otherwise. I just said that I hate to debug invalid objects in Oracle = because Oracle does not clearly show dependencies and reading source = code can be hard, especially if the author was one of those genius = generators which produce tons of code. Cheers, Paul=