Skip to Content
Practical PostgreSQL
book

Practical PostgreSQL

by Joshua D. Drake, John C. Worsley
January 2002
Intermediate to advanced
640 pages
16h 39m
English
O'Reilly Media, Inc.
Content preview from Practical PostgreSQL

Load

Dynamically loads object files into a database.

Synopsis

LOAD 'filename'

Parameters

filename

The name of the dynamic object file you wish to load.

Results

LOAD

The message returned when a dynamic object file was successfully loaded.

ERROR: LOAD: could not open file 'filename'

The error returned if the specified file was not found. Make sure the PostgreSQL backend is permitted to access the file.

Description

Use the LOAD command to load an object file into the PostgreSQL backend. Once loaded, an object file provides the backend the required functionality for which the file was created. In this way, you can incorporate your own database components (such as types and functions) dynamically. If you do not explicitly load an object file, the backend will load it automatically when a function from the file is called. Currently, only C language object files are supported.

Note

Description

You can also use this command to force the reloading of recently recompiled object files.

Example

The following example loads the object file /usr/local/src/lxp/libxpl.so in the lx database:

lx=# LOAD '/usr/local/src/lxp/libxpl.so';
LOAD
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PostgreSQL: Up and Running, 2nd Edition

PostgreSQL: Up and Running, 2nd Edition

Regina O. Obe, Leo S. Hsu
Learning PostgreSQL 11 - Third Edition

Learning PostgreSQL 11 - Third Edition

Christopher Travers, Andrey Volkov
Learn PostgreSQL

Learn PostgreSQL

Luca Ferrari, Enrico Pirozzi
PostgreSQL High Performance Cookbook

PostgreSQL High Performance Cookbook

Dinesh Kumar, Chitij Chauhan

Publisher Resources

ISBN: 9781449309770Supplemental ContentErrata Page