Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

332
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda