pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Morris de Oryx <morrisdeoryx@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Has there been any discussion of custom dictionaries being defined in the database?
Date: Thu, 17 Oct 2019 11:52:39 +0200
Message-ID: <19760.1571305959@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKqnccjYAf+MKYDzyRKYcKxXnXFp_9DTHwCLSuMPLdmyRd-h6A@mail.gmail.com>
References: <CAKqncciKsF=LiKy3dW-kDAD1pGX5K+Nbo5v9-T3c2M316XysCA@mail.gmail.com>
	<19354.1571301238@sss.pgh.pa.us>
	<CAKqnccjYAf+MKYDzyRKYcKxXnXFp_9DTHwCLSuMPLdmyRd-h6A@mail.gmail.com>

Morris de Oryx <morrisdeoryx@gmail.com> writes:
> Given that Amazon is bragging this week about turning off Oracle, it seems
> like they could kick some resources towards contributing something to the
> Postgres project. With that in mind, is the idea of defining dictionaries
> within a table somehow meritless, or unexpectedly difficult?

Well, it'd just be totally different.  I don't think anybody cares to
provide two separate definitions of common dictionaries (which'd have to
somehow be kept in sync).

As for why we did it with external text files in the first place ---
for at least some of the dictionary types, the point is that you can
drop in data files that are available from upstream sources, without any
modification.  Getting the same info into a table would require some
nonzero amount of data transformation.

Having said that ... in the end a dictionary is really just a set of
functions implementing the dictionary API; where they get their data
from is their business.  So in theory you could roll your own
dictionary that gets its data out of a table.  But the dictionary API
would be pretty hard to implement except in C, and I bet RDS doesn't
let you install your own C functions either :-(

			regards, tom lane





view thread (7+ messages)  latest in thread

Message-ID: <19760.1571305959@sss.pgh.pa.us>
Permalink:  ../19760.1571305959@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19760.1571305959@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, morrisdeoryx@gmail.com
  Subject: Re: Has there been any discussion of custom dictionaries being defined in the database?
  In-Reply-To: <19760.1571305959@sss.pgh.pa.us>
  References: <CAKqncciKsF=LiKy3dW-kDAD1pGX5K+Nbo5v9-T3c2M316XysCA@mail.gmail.com> <19354.1571301238@sss.pgh.pa.us> <CAKqnccjYAf+MKYDzyRKYcKxXnXFp_9DTHwCLSuMPLdmyRd-h6A@mail.gmail.com> <19760.1571305959@sss.pgh.pa.us>

* 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