Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ Datum
dbms_stats_array_recv(PG_FUNCTION_ARGS)
{
StringInfo buf = (StringInfo) PG_GETARG_POINTER(0);
int32 typmod = PG_GETARG_INT32(2);
Oid element_type;
int typlen;
bool typbyval;
Expand Down Expand Up @@ -145,7 +146,7 @@ dbms_stats_array_recv(PG_FUNCTION_ARGS)
dataPtr = (Datum *) palloc(nitems * sizeof(Datum));
nullsPtr = (bool *) palloc(nitems * sizeof(bool));
ReadArrayBinary(buf, nitems,
&my_extra->proc, typioparam, 0,
&my_extra->proc, typioparam, typmod,
typlen, typbyval, typalign,
dataPtr, nullsPtr,
&hasnulls, &nbytes);
Expand Down
5 changes: 5 additions & 0 deletions input/ut_imp_exp.source
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
\pset null '(null)'
CREATE TABLE s0.st3();
CREATE TABLE s0.st5(a timestamp);
INSERT INTO s0.st5 VALUES ('2020-10-01 10:00:00.55555'), ('2020-10-01 10:00:00.55555'),
('2020-11-21 03:30:29.111'), ('2020-11-21 03:30:29.111');
/*
* No.16-1 export_plain_stats-13.sql.sample
*/
Expand Down Expand Up @@ -300,3 +303,5 @@ ALTER FUNCTION dbms_stats.truth_import(
attname text,
src text
) RENAME TO import;

DROP TABLE s0.st5;
Loading