/usr/share/pyshared/londiste/installer.py is in skytools 2.1.12-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | """Functions to install londiste and its depentencies into database."""
import os, skytools
__all__ = ['install_provider', 'install_subscriber']
provider_object_list = [
skytools.DBLanguage("plpgsql"),
skytools.DBFunction('txid_current_snapshot', 0, sql_file = "txid.sql"),
skytools.DBSchema('pgq', sql_file = "pgq.sql"),
skytools.DBSchema('londiste', sql_file = "londiste.sql")
]
subscriber_object_list = [
skytools.DBLanguage("plpgsql"),
skytools.DBSchema('londiste', sql_file = "londiste.sql")
]
def install_provider(curs, log):
"""Installs needed code into provider db."""
skytools.db_install(curs, provider_object_list, log)
def install_subscriber(curs, log):
"""Installs needed code into subscriber db."""
skytools.db_install(curs, subscriber_object_list, log)
|