pgmpc

This Release
pgmpc 0.1.0
Date
Status
Stable
Abstract
mpd client for PostgreSQL
Description
Set of functions to control and interact with mpd instance
Released By
michaelpq
License
PostgreSQL
Resources
Special Files
Tags

Extensions

pgmpc 0.1.0
mpd client for PostgreSQL

README

Contents

pgmpc, mpd client for PostgreSQL
================================

This module includes a full interface to interact with a remote mpd server
from a PostgreSQL server.

The features included in this module permit to do the following operations
on an instance of mpd:
- Control player modes
- Control of volume
- Query status
- Query list of songs
- etc.

Installation
------------

This module requires libmpdclient to be installed, then it can be compiled
with the following command:

    make install

Then it can be enabled using this command after connecting to a database:

    =# CREATE EXTENSION pgmpc;

Options
-------

The following options can be used:
- pgmpc.mpd_host, address to connect to mpd instance. Default is "localhost"
This can be set as a local Unix socket.
- pgmpc.mpd_port, port to connect to mpd instance. Default is 6600.
- pgmpc.mpd_password, password to connect to mpd instance.
- pgmpc.mpd_timeout, timeout for connection obtention. Default is 10s.
Maximum value is 300s. 0 means an infinite wait.
All those parameters can be updated using SET within a single session once the
extension library is loaded into the server.