QUERY: update PSlot set backlink = 'WS.001.1a' where slotname = 'PS.base.a1';
QUERY: update PSlot set backlink = 'WS.001.1b' where slotname = 'PS.base.a3';
QUERY: select * from WSlot where roomno = '001' order by slotname;
-slotname | roomno| slotlink|backlink
+slotname |roomno |slotlink |backlink
--------------------+--------+--------------------+--------------------
WS.001.1a |001 | |PS.base.a1
WS.001.1b |001 | |PS.base.a3
(6 rows)
QUERY: select * from PSlot where slotname ~ 'PS.base.a' order by slotname;
-slotname |pfname| slotlink|backlink
+slotname |pfname|slotlink |backlink
--------------------+------+--------------------+--------------------
PS.base.a1 |PF0_1 | |WS.001.1a
PS.base.a2 |PF0_1 | |
QUERY: update PSlot set backlink = 'WS.001.2a' where slotname = 'PS.base.a3';
QUERY: select * from WSlot where roomno = '001' order by slotname;
-slotname | roomno| slotlink|backlink
+slotname |roomno |slotlink |backlink
--------------------+--------+--------------------+--------------------
WS.001.1a |001 | |PS.base.a1
WS.001.1b |001 | |
(6 rows)
QUERY: select * from PSlot where slotname ~ 'PS.base.a' order by slotname;
-slotname |pfname| slotlink|backlink
+slotname |pfname|slotlink |backlink
--------------------+------+--------------------+--------------------
PS.base.a1 |PF0_1 | |WS.001.1a
PS.base.a2 |PF0_1 | |
QUERY: update PSlot set backlink = 'WS.001.1b' where slotname = 'PS.base.a2';
QUERY: select * from WSlot where roomno = '001' order by slotname;
-slotname | roomno| slotlink|backlink
+slotname |roomno |slotlink |backlink
--------------------+--------+--------------------+--------------------
WS.001.1a |001 | |PS.base.a1
WS.001.1b |001 | |PS.base.a2
(6 rows)
QUERY: select * from PSlot where slotname ~ 'PS.base.a' order by slotname;
-slotname |pfname| slotlink|backlink
+slotname |pfname|slotlink |backlink
--------------------+------+--------------------+--------------------
PS.base.a1 |PF0_1 | |WS.001.1a
PS.base.a2 |PF0_1 | |WS.001.1b
QUERY: update WSlot set backlink = 'PS.base.a4' where slotname = 'WS.001.2b';
QUERY: update WSlot set backlink = 'PS.base.a6' where slotname = 'WS.001.3a';
QUERY: select * from WSlot where roomno = '001' order by slotname;
-slotname | roomno| slotlink|backlink
+slotname |roomno |slotlink |backlink
--------------------+--------+--------------------+--------------------
WS.001.1a |001 | |PS.base.a1
WS.001.1b |001 | |PS.base.a2
(6 rows)
QUERY: select * from PSlot where slotname ~ 'PS.base.a' order by slotname;
-slotname |pfname| slotlink|backlink
+slotname |pfname|slotlink |backlink
--------------------+------+--------------------+--------------------
PS.base.a1 |PF0_1 | |WS.001.1a
PS.base.a2 |PF0_1 | |WS.001.1b
QUERY: update WSlot set backlink = 'PS.base.a6' where slotname = 'WS.001.3b';
QUERY: select * from WSlot where roomno = '001' order by slotname;
-slotname | roomno| slotlink|backlink
+slotname |roomno |slotlink |backlink
--------------------+--------+--------------------+--------------------
WS.001.1a |001 | |PS.base.a1
WS.001.1b |001 | |PS.base.a2
(6 rows)
QUERY: select * from PSlot where slotname ~ 'PS.base.a' order by slotname;
-slotname |pfname| slotlink|backlink
+slotname |pfname|slotlink |backlink
--------------------+------+--------------------+--------------------
PS.base.a1 |PF0_1 | |WS.001.1a
PS.base.a2 |PF0_1 | |WS.001.1b
QUERY: update WSlot set backlink = 'PS.base.a5' where slotname = 'WS.001.3a';
QUERY: select * from WSlot where roomno = '001' order by slotname;
-slotname | roomno| slotlink|backlink
+slotname |roomno |slotlink |backlink
--------------------+--------+--------------------+--------------------
WS.001.1a |001 | |PS.base.a1
WS.001.1b |001 | |PS.base.a2
(6 rows)
QUERY: select * from PSlot where slotname ~ 'PS.base.a' order by slotname;
-slotname |pfname| slotlink|backlink
+slotname |pfname|slotlink |backlink
--------------------+------+--------------------+--------------------
PS.base.a1 |PF0_1 | |WS.001.1a
PS.base.a2 |PF0_1 | |WS.001.1b
QUERY: insert into PSlot values ('PS.1st.tb6', 'PF1_2', '', '');
QUERY: update PField set name = 'PF0_2' where name = 'PF0_X';
QUERY: select * from PSlot order by slotname;
-slotname |pfname| slotlink|backlink
+slotname |pfname|slotlink |backlink
--------------------+------+--------------------+--------------------
PS.1st.a1 |PF1_1 | |WS.101.1a
PS.1st.a2 |PF1_1 | |WS.101.1b
(66 rows)
QUERY: select * from WSlot order by slotname;
-slotname | roomno| slotlink|backlink
+slotname |roomno |slotlink |backlink
--------------------+--------+--------------------+--------------------
WS.001.1a |001 | |PS.base.a1
WS.001.1b |001 | |PS.base.a2
(12 rows)
QUERY: insert into PField values ('PF1_1', 'should fail due to unique index');
-ERROR: Cannot insert a duplicate key into a unique index
+ERROR: Cannot insert a duplicate key into unique index pfield_name
QUERY: update PSlot set backlink = 'WS.not.there' where slotname = 'PS.base.a1';
ERROR: WS.not.there does not exists
QUERY: update PSlot set backlink = 'XX.illegal' where slotname = 'PS.base.a1';
QUERY: update PSlot set slotlink = 'XX.illegal' where slotname = 'PS.base.a1';
ERROR: illegal slotlink beginning with XX
QUERY: insert into HSlot values ('HS', 'base.hub1', 1, '');
-ERROR: Cannot insert a duplicate key into a unique index
+ERROR: Cannot insert a duplicate key into unique index hslot_name
QUERY: insert into HSlot values ('HS', 'base.hub1', 20, '');
ERROR: no manual manipulation of HSlot
QUERY: delete from HSlot;