57 Commits

Author SHA1 Message Date
Blottiere Paul
a952f0d287 Schema cache is not initialized at that time 2022-08-19 09:56:00 +02:00
Blottiere Paul
fbbf3de644 Use cached schema if available 2022-03-30 23:42:21 +02:00
Blottiere Paul
85ac409517 clang-format 2022-02-08 09:55:39 +01:00
Regina Obe
fa6faa4ec4 Support for PostgreSQL 12 references #243 2019-10-14 20:48:09 -04:00
Baudouin Feildel
3e64c68dd4 Fix boolean case errors when compiling againt pg11 2018-11-27 00:14:13 +01:00
Blottiere Paul
063a5b1651 Remove GHT support 2018-06-14 18:34:05 +01:00
Karl Pietrzak
4f738eb072 Add PC_MakePatch(pcid integer, values float8[])
Add PC_MakePatch to create a patch from a pcid and an array of float8 values.
2018-06-14 18:49:52 +02:00
Éric Lemoine
d775ea0a14 Fix typos in function declarations 2018-04-30 10:04:33 +02:00
Éric Lemoine
0670d95d4b Add a PC_Full_Version function
This commit adds a PC_Full_Version function whose output is as follows:

	# select pc_full_version();
										 pc_full_version
	------------------------------------------------------------------------------------------
	 POINTCLOUD="1.1.0" PGSQL="96" LIBXML2="2.9.4" LIBGHT enabled=false LAZPERF enabled=false
	(1 row)
2018-04-27 08:38:50 +02:00
Blottiere Paul
fb5f1dcca4 Add PC_Range(p PCPATCH, first int4, count int4)
This commit adds a PC_Range function. This function returns a patch of "count" points. These points are selected from the start-th point in the input patch.
2017-03-30 09:03:04 +02:00
Mathieu Brédif
ef5fc167d8 indentation normalization 2017-02-12 23:52:15 +01:00
Mathieu Brédif
68caab7ae1 PC_Sort and PC_IsSorted (#106)
* PC_Sort and PC_IsSorted

* fixing -Wdeclaration-after-statement warnings

* using sort_r for a portable definition of qsort_r/qsort_s

* uncompression fallback for lazperf/is_sorted

* NEWS updated, sort_r github reference and README added
2017-01-29 23:12:31 +01:00
Paul Ramsey
211258b78d Merge pull request #105 from pblottiere/laz
Add lazperf pcpatch
2016-06-14 05:59:51 -07:00
Blottiere Paul
b3764bd5dc Add lazperf pcpatch 2016-06-14 10:22:16 +02:00
Mathieu Brédif
5a0f7944fd new PC_PointN function 2016-03-07 15:57:05 +01:00
Vincent Picavet
a94e4c045d Fix PG 9.5 compatibility. 2015-07-30 17:26:54 +02:00
Sandro Santilli
38944e72df Implement PC_Patch{Min,Max,Avg}(PcPatch) returns PcPoint
Closes #77

NOTE: changes the C function signature so you need to properly
      upgrade scripts for things to work again.
2015-05-15 15:19:47 +02:00
Sandro Santilli
7061bbb549 Add "type" field in pc_summary dimension output 2015-04-24 16:41:21 +02:00
Sandro Santilli
718c931c81 Fix PC_Compress call with single 'dimensional' argument 2015-04-21 16:44:18 +02:00
Sandro Santilli
9c1edfccdf Add PC_Compress function 2015-04-13 13:39:42 +02:00
Sandro Santilli
20c6f462d9 PC_Summary: do not assume schema compression matches actual patch compression 2015-04-09 16:40:31 +02:00
Sandro Santilli
3fe9d4599f Implement PC_Summary(pcpatch)
Includes test and docs
2015-03-19 16:54:09 +01:00
Sandro Santilli
9f3d96cea6 Add PC_PCId(pcpoint) and PC_PCId(pcpatch) functions
Closes #50
Includes (online) testcase
2015-03-18 17:13:01 +01:00
Sandro Santilli
009cea221d Fix typo in comment 2015-02-13 12:52:47 +01:00
Sandro Santilli
2ecca0b602 Expose PC_Get(pcpoint) returning an array of float8 at the SQL level
Initial code by Remi-C, refactored to reduce code extent and equipped
with regress test.
2015-02-12 12:08:23 +01:00
Paul Ramsey
b8ff674ac4 Replace uncompressed filter hack with native GHT filtering for GHT cases. 2013-06-28 11:35:27 -07:00
Paul Ramsey
c61ff69332 Remove unused variable (issue #2) 2013-06-26 09:46:35 -07:00
Paul Ramsey
12123bdbb1 astyle pass 2013-06-12 17:13:19 -07:00
Paul Ramsey
c4dbf6377d Quiet warnings in Centos6 2013-06-10 13:17:15 -07:00
Paul Ramsey
668d2413b2 Tests in place for patchlevel filtering
much optimization left to do
2013-06-04 14:53:42 -07:00
Paul Ramsey
69ec4d3ce0 More rejig 2013-05-31 16:17:15 -07:00
Paul Ramsey
8174fa4ca3 Finish implementation of patch-level stats 2013-05-31 15:36:23 -07:00
Paul Ramsey
b76a3b8300 Continue with stats calculation reworking 2013-05-30 16:18:42 -07:00
Paul Ramsey
26b44326ee Add PC_Version function to read library version 2013-05-08 11:17:19 -07:00
Paul Ramsey
379f22f24a Detoasting only a slice modifies the VARSIZE value
in the returned pointer, so no good for getsize
call.
2013-05-08 09:47:39 -07:00
Paul Ramsey
fb4f657106 More more functions to slice-based access for header info 2013-05-08 09:34:20 -07:00
Paul Ramsey
0a8ab4dc0a Only detoast a slice of patch to read npoints 2013-05-07 14:14:20 -07:00
Paul Ramsey
4d2187af38 Convert to using public ght api 2013-05-03 15:24:56 -07:00
Paul Ramsey
8b3df45cab Fix dimensional serialization 2013-03-15 10:19:37 -10:00
Paul Ramsey
6e7dc88520 Update copyright to reference NrCan 2013-03-08 13:53:06 -08:00
Paul Ramsey
73da920ff0 Remove trailing white space from .c files 2013-03-08 13:46:06 -08:00
Paul Ramsey
ad75e05492 Documentation 2013-03-08 12:54:46 -08:00
Paul Ramsey
d0aab34952 Add PC_Intersects(patch, patch) 2013-03-08 11:15:48 -08:00
Paul Ramsey
d4a104bd77 Enable dimensional storage in the db 2013-03-06 22:06:23 -08:00
Paul Ramsey
f6f9c4281c PC_Uncompress and PC_NumPoints 2013-03-06 11:14:46 -08:00
Paul Ramsey
b457b2faee Add in aggregate functions for pc_union(pcpatch) 2013-03-04 11:55:12 -08:00
Paul Ramsey
4e2ffe5bab Add array agg function for pcpatch 2013-03-04 09:51:23 -08:00
Paul Ramsey
5329ee0051 Change names of generic aggregate functions 2013-03-04 09:31:52 -08:00
Paul Ramsey
c7060031b5 Add dimensional compression routines, right out to the
patch level. Now to add them to SQL.
2013-03-01 16:42:15 -08:00
Paul Ramsey
24fd7bef7a Add caching to XML schema support,
required for reasonable performance
in real world use cases.
2013-02-07 13:54:08 -08:00