Groups
Sign in
Groups
AgenDAV development
Conversations
About
Send feedback
Help
ip_address varying(16) is too short for IPv6
15 views
Skip to first unread message
Ondřej Surý
unread,
May 24, 2013, 4:29:50 AM
5/24/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to agend...@googlegroups.com
You can use the pgsql type inet (or cidr), so session table will look like this:
CREATE TABLE sessions (
session_id varchar(40) NOT NULL DEFAULT 0,
ip_address inet NOT NULL DEFAULT '0.0.0.0',
user_agent varchar(120) DEFAULT NULL,
last_activity bigint NOT NULL DEFAULT 0,
user_data text NOT NULL,
PRIMARY KEY (session_id)
);
Reply all
Reply to author
Forward
0 new messages