{"action":"created","issue":{"url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/381","labels_url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/381/labels{/name}","comments_url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/381/comments","events_url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/381/events","html_url":"https://github.com/pgjdbc/pgjdbc/issues/381","id":109815595,"number":381,"title":"java.sql.Struct type support","user":{"login":"RomanHargrave","id":6024227,"avatar_url":"https://avatars.githubusercontent.com/u/6024227?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanHargrave","html_url":"https://github.com/RomanHargrave","followers_url":"https://api.github.com/users/RomanHargrave/followers","following_url":"https://api.github.com/users/RomanHargrave/following{/other_user}","gists_url":"https://api.github.com/users/RomanHargrave/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanHargrave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanHargrave/subscriptions","organizations_url":"https://api.github.com/users/RomanHargrave/orgs","repos_url":"https://api.github.com/users/RomanHargrave/repos","events_url":"https://api.github.com/users/RomanHargrave/events{/privacy}","received_events_url":"https://api.github.com/users/RomanHargrave/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-05T14:58:16Z","updated_at":"2015-10-05T16:20:51Z","closed_at":null,"body":"It looks like PGJDBC does not support mapping user-defined types by means of `java.sql.Struct`, which seems to me to be the JVM-standard means of defining user types, and is far more orthagonal than `PGObject`, which requires that the user be able to parse object literals.\r\n\r\nIt would be great if Postgres-JDBC were to support using `java.sql.Struct` unless some manner of critical roadblock stands in the way."},"comment":{"url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/comments/145589517","html_url":"https://github.com/pgjdbc/pgjdbc/issues/381#issuecomment-145589517","issue_url":"https://api.github.com/repos/pgjdbc/pgjdbc/issues/381","id":145589517,"user":{"login":"RomanHargrave","id":6024227,"avatar_url":"https://avatars.githubusercontent.com/u/6024227?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanHargrave","html_url":"https://github.com/RomanHargrave","followers_url":"https://api.github.com/users/RomanHargrave/followers","following_url":"https://api.github.com/users/RomanHargrave/following{/other_user}","gists_url":"https://api.github.com/users/RomanHargrave/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanHargrave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanHargrave/subscriptions","organizations_url":"https://api.github.com/users/RomanHargrave/orgs","repos_url":"https://api.github.com/users/RomanHargrave/repos","events_url":"https://api.github.com/users/RomanHargrave/events{/privacy}","received_events_url":"https://api.github.com/users/RomanHargrave/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T16:20:51Z","updated_at":"2015-10-05T16:20:51Z","body":"I would also like to add that this makes it nearly impossible to support custom types when using PGJDBC with most connection poolers, especially HikariCP, which does not offer an interface to access the real connection object (needed to inform PGJDBC of a custom PGobject)."}}