digital-guard / preserv

Digital Preservation Project
http://git.digital-guard.org/preserv
Apache License 2.0
0 stars 0 forks source link

preserv-PE/data/CUS/Cusco/_pk001 #23

Closed crebollobr closed 2 years ago

crebollobr commented 2 years ago

Estava fazendo teste de delete. Fiz git update em todos os gits. recriei o banco ingest2 e fiz make me na pasta preserv-PE/data/CUS/Cusco/_pk001 depois fiz make all_layers, que executou a linha

psql postgres://postgres@localhost/ingest1 -c "SELECT ingest.any_load('shp2sql','/tmp/sandbox/_pk1_001/Ubicaciones/Inscripciones','geoaddress_ext','pk1_001_p1_geoaddress','1_001','43484294f9190a3a050e097e0c106f8da16169a3e1dff9d00ea04aae6e9cbe1a.zip',array['gid', 'usuario', 'geom'])"

e resultou em

ERROR:  function geohash_distribution_summary(jsonb, integer, integer, numeric) is not unique
LINE 5:         geohash_distribution_summary( ingest.feature_asis_ge...
                ^
HINT:  Could not choose a best candidate function. You might need to add explicit type casts.
QUERY:  
  SELECT ingest.feature_asis_assign_volume(p_file_id,true)
    || jsonb_build_object(
        'distribution',
        geohash_distribution_summary( ingest.feature_asis_geohashes(p_file_id,ghs_size), ghs_size, 10, 0.7)
    )
  FROM (
    SELECT CASE WHEN (ingest.layer_file_geomtype(p_file_id))[1]='poly' THEN 5 ELSE 6 END AS ghs_size
  ) t

CONTEXT:  SQL function "feature_asis_assign" during inlining
SQL statement "UPDATE ingest.layer_file
    SET proc_step=2,   -- if insert process occurs after q_query.
        feature_asis_summary= ingest.feature_asis_assign(q_file_id)
    WHERE file_id=q_file_id"
PL/pgSQL function ingest.any_load(text,text,text,text,real,text,text[],text,boolean) line 109 at SQL statement
make: *** [makefile:119: geoaddress] Error 1
crebollobr commented 2 years ago

refiz o banco de dados e os makefiles, funcionou