CONTEXT: SQL statement "INSERT INTO londiste.subscriber_table (queue_name, table_name) values ( $1 , $2 )"
PL/pgSQL function "subscriber_add_table" line 2 at SQL statement
select * from londiste.subscriber_get_table_list('pqueue');
- table_name | merge_state | snapshot | trigger_name
-----------------------+-------------+----------+--------------
- public.testdata_nopk | | |
- public.testdata | | |
+ table_name | merge_state | snapshot | trigger_name | skip_truncate
+----------------------+-------------+----------+--------------+---------------
+ public.testdata_nopk | | | |
+ public.testdata | | | |
(2 rows)
select londiste.subscriber_remove_table('pqueue', 'public.nonexist');
(1 row)
select * from londiste.subscriber_get_table_list('pqueue');
- table_name | merge_state | snapshot | trigger_name
-----------------------+-------------+----------+--------------
- public.testdata_nopk | | |
+ table_name | merge_state | snapshot | trigger_name | skip_truncate
+----------------------+-------------+----------+--------------+---------------
+ public.testdata_nopk | | | |
(1 row)
--
rec londiste.ret_subscriber_table%rowtype;
begin
for rec in
- select table_name, merge_state, snapshot, trigger_name
+ select table_name, merge_state, snapshot, trigger_name, skip_truncate
from londiste.subscriber_table
where queue_name = i_queue_name
order by nr
);
create table londiste.link (
- source text not null,
- dest text not null,
+ source text not null,
+ dest text not null,
primary key (source),
unique (dest)
);
create table londiste.subscriber_seq (
nr serial not null,
queue_name text not null,
- seq_name text not null,
+ seq_name text not null,
primary key (queue_name, seq_name)
);