adding quickfix

This commit is contained in:
Ramiro Paz
2026-03-09 15:35:32 -03:00
parent 0e8fe168ef
commit fe588e92f1
1222 changed files with 1408232 additions and 1 deletions

View File

@ -0,0 +1,3 @@
dropdb -U postgres --if-exists quickfix
createdb -U postgres quickfix
psql -U postgres -d quickfix -f postgresql.sql

View File

@ -0,0 +1,3 @@
dropdb -U postgres --if-exists quickfix
createdb -U postgres quickfix
psql -U postgres -d quickfix -f postgresql.sql

View File

@ -0,0 +1,16 @@
CREATE SEQUENCE event_log_sequence;
CREATE TABLE event_log (
id INTEGER DEFAULT NEXTVAL('event_log_sequence'),
time TIMESTAMP WITH TIME ZONE NOT NULL,
beginstring CHAR(8) NOT NULL,
sendercompid VARCHAR(64) NOT NULL,
sendersubid VARCHAR(64) NOT NULL,
senderlocid VARCHAR(64) NOT NULL,
targetcompid VARCHAR(64) NOT NULL,
targetsubid VARCHAR(64) NOT NULL,
targetlocid VARCHAR(64) NOT NULL,
session_qualifier VARCHAR(64),
text TEXT NOT NULL,
PRIMARY KEY (id)
);

View File

@ -0,0 +1,16 @@
CREATE SEQUENCE messages_log_sequence;
CREATE TABLE messages_log (
id INTEGER DEFAULT NEXTVAL('messages_log_sequence'),
time TIMESTAMP WITH TIME ZONE NOT NULL,
beginstring CHAR(8) NOT NULL,
sendercompid VARCHAR(64) NOT NULL,
sendersubid VARCHAR(64) NOT NULL,
senderlocid VARCHAR(64) NOT NULL,
targetcompid VARCHAR(64) NOT NULL,
targetsubid VARCHAR(64) NOT NULL,
targetlocid VARCHAR(64) NOT NULL,
session_qualifier VARCHAR(64),
text TEXT NOT NULL,
PRIMARY KEY (id)
);

View File

@ -0,0 +1,15 @@
CREATE TABLE messages (
beginstring CHAR(8) NOT NULL,
sendercompid VARCHAR(64) NOT NULL,
sendersubid VARCHAR(64) NOT NULL,
senderlocid VARCHAR(64) NOT NULL,
targetcompid VARCHAR(64) NOT NULL,
targetsubid VARCHAR(64) NOT NULL,
targetlocid VARCHAR(64) NOT NULL,
session_qualifier VARCHAR(64) NOT NULL,
msgseqnum INTEGER NOT NULL,
message TEXT NOT NULL,
PRIMARY KEY (beginstring, sendercompid, sendersubid, senderlocid,
targetcompid, targetsubid, targetlocid, session_qualifier,
msgseqnum)
);

View File

@ -0,0 +1,4 @@
\i sessions_table.sql;
\i messages_table.sql;
\i messages_log_table.sql;
\i event_log_table.sql;

View File

@ -0,0 +1,15 @@
CREATE TABLE sessions (
beginstring CHAR(8) NOT NULL,
sendercompid VARCHAR(64) NOT NULL,
sendersubid VARCHAR(64) NOT NULL,
senderlocid VARCHAR(64) NOT NULL,
targetcompid VARCHAR(64) NOT NULL,
targetsubid VARCHAR(64) NOT NULL,
targetlocid VARCHAR(64) NOT NULL,
session_qualifier VARCHAR(64) NOT NULL,
creation_time TIMESTAMP WITH TIME ZONE NOT NULL,
incoming_seqnum INTEGER NOT NULL,
outgoing_seqnum INTEGER NOT NULL,
PRIMARY KEY (beginstring, sendercompid, sendersubid, senderlocid,
targetcompid, targetsubid, targetlocid, session_qualifier)
);