Where to save data used by extension ?

Поиск
Список
Период
Сортировка
От Hao Wu
Тема Where to save data used by extension ?
Дата
Msg-id CANdi8u0FfCSLa4rkXZ9n5oO049F+6dHpR+32O=2ObMKPYs36EQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Where to save data used by extension ?  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-hackers
Hi pgsql-hackers,

I have an extension for postgresql. The extension works across some databases, and needs to save some data. The data might be modified dynamically by the extension, and all the changed result must be saved. I have considered some methods.
1. Use GUC
I find no easy way to write the GUC values back to postgres.conf. And the data might be a bit complex
2. Create a table under a special database, like postgres
The weak is the strong assumption that the database postgres does exist and will not be dropped.
3. Create a table under a database created by the extension
A little heavy, but without dependencies.
4. Write to a native file.
The file can not sync to a standby

Currently, I use #2. Is there any better way to do this?

Thank you very much
Best Regards

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

Предыдущее
От: Andreas Karlsson
Дата:
Сообщение: Re: Introducing SNI in TLS handshake for SSL connections
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Making WAL receiver startup rely on GUC context forprimary_conninfo and primary_slot_name