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
26
27
28
29
30
31
32
33
34
35
36
37
38
|
set client_min_messages = 'warning';
create schema data;
create table data.simple_tbl (
username text not null,
contactname text not null,
data text,
primary key (username, contactname)
);
create table data.bulk_tbl (
id serial primary key,
data text
);
create table data.keep_all_tbl (
id serial primary key,
username text not null,
tstamp timestamptz not null default now(),
data text
);
create table data.keep_latest_tbl (
id serial primary key,
username text not null,
tstamp timestamptz not null default now(),
data text
);
create table data.random_tbl (
id serial primary key,
username text not null,
tstamp timestamptz not null default now(),
data text
);
|