My background is MS SQL and VB.
I'm new to Postgresql, Python & psycopg2.
I have a problem in getting return value from a UDF in PostgreSQL into Python.
using PGAdmin3.
table created:
-----
CREATE TABLE public.personnel
(
companyid integer NOT NULL,
fullname character varying(100) NOT NULL,
ts timestamp without time zone NOT NULL,
serialid smallint NOT NULL DEFAULT nextval('personnel_serialid_seq'::regclass),
CONSTRAINT personnel_pkey PRIMARY KEY (serialid),
CONSTRAINT personnel_companyid_key UNIQUE (companyid),
CONSTRAINT personnel_fullname_key UNIQUE (fullname)
)
WITH (
OIDS=FALSE
);
ALTER TABLE public.personnel
OWNER TO postgres;
-----