~launchpad-committers/ubuntu/lucid/slony1/ppa-8.4

« back to all changes in this revision

Viewing changes to src/backend/slony1_funcs.sql

  • Committer: Bazaar Package Importer
  • Author(s): Peter Eisentraut
  • Date: 2008-11-01 14:28:08 UTC
  • mfrom: (1.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20081101142808-kp7y6y20icbm0ru0
Tags: upstream-1.2.15
ImportĀ upstreamĀ versionĀ 1.2.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
--      Copyright (c) 2003-2004, PostgreSQL Global Development Group
7
7
--      Author: Jan Wieck, Afilias USA INC.
8
8
--
 
9
-- $Id: slony1_funcs.sql,v 1.98.2.31 2008-09-12 17:37:48 cbbrowne Exp $
9
10
-- ----------------------------------------------------------------------
10
11
 
11
12
-- **********************************************************************
430
430
returns int4
431
431
as '
432
432
begin
433
 
        return 14;
 
433
        return 15;
434
434
end;
435
435
' language plpgsql;
436
436
comment on function @NAMESPACE@.slonyVersionPatchlevel () is 
3542
3542
        lock table @NAMESPACE@.sl_config_lock;
3543
3543
 
3544
3544
        -- ----
 
3545
        -- Do nothing if the sl_trigger entry already exists.
 
3546
        -- ----
 
3547
        if exists (select 1 from @NAMESPACE@.sl_trigger
 
3548
                                where trig_tabid = p_trig_tabid
 
3549
                                  and trig_tgname = p_trig_tgname)
 
3550
                then
 
3551
                return 0;
 
3552
        end if;
 
3553
 
 
3554
        -- ----
3545
3555
        -- Get the current table status (altered or not)
3546
3556
        -- ----
3547
3557
        select tab_altered into v_tab_altered