Re: Create a Foreign Table for PostgreSQL CSV Logs

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Create a Foreign Table for PostgreSQL CSV Logs
Дата
Msg-id 20200824150725.GJ26781@momjian.us
обсуждение исходный текст
Ответ на Re: Create a Foreign Table for PostgreSQL CSV Logs  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Create a Foreign Table for PostgreSQL CSV Logs  (Олег Самойлов <splarv@ya.ru>)
Список pgsql-docs
On Mon, Aug 24, 2020 at 07:40:49AM -0700, David G. Johnston wrote:
> On Mon, Aug 24, 2020 at 6:17 AM Олег Самойлов <splarv@ya.ru> wrote:
> 
>     There must not be constraints at all. Constraints are needed to check
>     incoming data to the table. But here table is read-only for database!
> 
> 
> Please don't top-post.
> 
> 
> 
>     So all your constraints is totally useless.
>     > > could become:
>     > >
>     > > connection_from text check(connection_from ~ '^[^:]+:[0-9]+$) -- the
>     host and
>     > > port of the client, colon-separated
> 
> 
> I'll agree that the benefit for adding the constraints to a foreign table are
> less than for a normal table but it is still not zero.  Constraints are also a
> form of documentation.  And also can be used (at least non-null ones) during
> optimization.

I feel constraints are going to lose focus of what we are trying to
show.  Do the constraints actually do anything on a foreign table?  If
not, we would have to mention that here too, which might be fine.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee




В списке pgsql-docs по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Procedures
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Procedures