Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

330
Visualizações
PostgreSQL loading a module without shared_preload_libraries

I'm writing an extension for PostgreSQL in C language. The extension is loaded by PostgreSQL when I specify its' name in shared_preload_libraries. Out of curiosity, is there a way for PG to load my extension without specifying its' name in shared_preload_libraries?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You can load extension modules:

  • From shared_preload_libraries. This loads at postmaster start time, so the extension can register shared memory, locks, hooks etc before we start forking backends.

  • With session_preload_libraries. This loads after fork(), in a backend, so it can't register shmem etc.

  • With local_preload_libraries. Like session_preload_libraries, but limited to the plugins directory and settable by normal users.

  • With the LOAD statement, or implicitly by running a function that refers to a LANGUAGE c implementation.

There's no alternative to getting the full effect of shared_preload_libraries. The other options don't permit you to do things that require code to be run in the postmaster, like register addin LWLocks or static shared memory segments. But if you don't do those things a simple LOAD suffices.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda