pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: ourdiaspora <ourdiaspora@protonmail.com>
To: Francisco Olarte <folarte@peoplecall.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Visibility of data from table inherits function
Date: Sun, 2 Jan 2022 11:55:36 -0800
Message-ID: <830db592-c67e-65a1-db73-a7fe7f9f49d6@aklaver.com> (raw)
In-Reply-To: <TYXOG__NifhiS2fEiqgnNDH9w-sqvHeSXz2osjUdnfS-9lN3IAsJ8uv4Z_c9fOHBxLDroEZ1YkUl9sGZacdCqMC4SXdY0Wqonu3aqCbeAnk=@protonmail.com>
References: <-YOusR_95io8hzFnscly6yFVD7ssgOhG0dnTRskP2hU2TaCDS29X2XIxNaYAKjZjYdYYYVF87qlFcmzDHIgw-9ooalVT6DkLDnd6cLqHCko=@protonmail.com>
	<CA+bJJbwsUtM-fpcPAVcNuPoyGkqwhoSnFTBY8gSBJ5zOKpBdug@mail.gmail.com>
	<TYXOG__NifhiS2fEiqgnNDH9w-sqvHeSXz2osjUdnfS-9lN3IAsJ8uv4Z_c9fOHBxLDroEZ1YkUl9sGZacdCqMC4SXdY0Wqonu3aqCbeAnk=@protonmail.com>

On 1/2/22 11:41, ourdiaspora wrote:
> On Sunday, January 2nd, 2022 at 3:54 PM, Francisco Olarte <folarte@peoplecall.com> wrote:
>>
>> Inherits does not copy things. LIKE on creation does, but AFAIK it can
>>
>> copy nearly everything except data.
>>
> 
> Thanks, had read that part of the documentation.
> 
> So far it seems that functions 'joins' may be used to view data, whilst the functions 'views' is unable to be used with data entry.

They are not functions. A join is a clause in a query. A view is an 
object that can be created and then used like a table.

Views can be used for data entry, see:

https://www.postgresql.org/docs/current/sql-createview.html

Search for section:

Updatable Views

> 
> Please, any suggestions of an alternative function to use?
> 
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (7+ messages)  latest in thread

Message-ID: <830db592-c67e-65a1-db73-a7fe7f9f49d6@aklaver.com>
Permalink:  ../830db592-c67e-65a1-db73-a7fe7f9f49d6@aklaver.com/
Also on:    postgresql.org/message-id/830db592-c67e-65a1-db73-a7fe7f9f49d6@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, ourdiaspora@protonmail.com, folarte@peoplecall.com
  Subject: Re: Visibility of data from table inherits function
  In-Reply-To: <830db592-c67e-65a1-db73-a7fe7f9f49d6@aklaver.com>
  References: <-YOusR_95io8hzFnscly6yFVD7ssgOhG0dnTRskP2hU2TaCDS29X2XIxNaYAKjZjYdYYYVF87qlFcmzDHIgw-9ooalVT6DkLDnd6cLqHCko=@protonmail.com> <CA+bJJbwsUtM-fpcPAVcNuPoyGkqwhoSnFTBY8gSBJ5zOKpBdug@mail.gmail.com> <TYXOG__NifhiS2fEiqgnNDH9w-sqvHeSXz2osjUdnfS-9lN3IAsJ8uv4Z_c9fOHBxLDroEZ1YkUl9sGZacdCqMC4SXdY0Wqonu3aqCbeAnk=@protonmail.com> <830db592-c67e-65a1-db73-a7fe7f9f49d6@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox