<div dir="ltr">Привет,<div><br></div><div>в запросах упомянуты таблицы, которые не приложены, из запроса неочевидно, что в них происходи. второй запрос удаляет кусок системной таблицы. какое поведение ожидается?<br><br>shared query references tables that aren't attached to the message. it's not obvious how the query should behave. the second one is deleting a part of system table. what is the expected behavior?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 18, 2019 at 6:15 PM Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca">pramsey@cleverelephant.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><br><div><br><blockquote type="cite"><div>Begin forwarded message:</div><br class="gmail-m_-6211690974400569725Apple-interchange-newline"><div style="margin:0px"><span style="font-family:-webkit-system-font,"Helvetica Neue",Helvetica,sans-serif;color:rgb(0,0,0)"><b>From: </b></span><span style="font-family:-webkit-system-font,"Helvetica Neue",Helvetica,sans-serif">Ольга Ольга <<a href="mailto:rikottta@mail.ru" target="_blank">rikottta@mail.ru</a>><br></span></div><div style="margin:0px"><span style="font-family:-webkit-system-font,"Helvetica Neue",Helvetica,sans-serif;color:rgb(0,0,0)"><b>Subject: </b></span><span style="font-family:-webkit-system-font,"Helvetica Neue",Helvetica,sans-serif"><b>Fwd: Assertion with RASTER when Postgis is just loaded</b><br></span></div><div style="margin:0px"><span style="font-family:-webkit-system-font,"Helvetica Neue",Helvetica,sans-serif;color:rgb(0,0,0)"><b>Date: </b></span><span style="font-family:-webkit-system-font,"Helvetica Neue",Helvetica,sans-serif">July 18, 2019 at 8:11:00 AM PDT<br></span></div><div style="margin:0px"><span style="font-family:-webkit-system-font,"Helvetica Neue",Helvetica,sans-serif;color:rgb(0,0,0)"><b>To: </b></span><span style="font-family:-webkit-system-font,"Helvetica Neue",Helvetica,sans-serif"><a href="mailto:postgis-devel-owner@lists.osgeo.org" target="_blank">postgis-devel-owner@lists.osgeo.org</a><br></span></div><br><div><div dir="ltr"><div>Good day,</div><div>This is the 3rd day when I am trying to let Postgis team know about a probable bug in Postgis.</div><div>Either my email is not accepted, or I am proposed to confirm myself by my external profile, or my message is rejected... I might have found a valuable bug for Postgis community, at least it looks so. I wrote to Postgres and SQLsmith people and they all think so. Now I need to fight with the mechanism of enough proving that I am not a robot, to be able just to share the case which causes assertion failure.  I find this way very complicated, sorry. If anyone from Postgis could be interested in a potential bug which is regularly reproducible with SQLsmith, please - if you want - share the information below with those who might be interested in.<br></div><div><br></div><div>Best, Olga<br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <b class="gmail_sendername" dir="auto">Ольга Ольга</b> <span dir="auto"><<a href="mailto:rikottta@mail.ru" target="_blank">rikottta@mail.ru</a>></span><br>Date: Thu, Jul 18, 2019 at 4:53 PM<br>Subject: Fwd: Assertion with RASTER when Postgis is just loaded<br>To:  <<a href="mailto:postgis-devel-owner@lists.osgeo.org" target="_blank">postgis-devel-owner@lists.osgeo.org</a>><br></div><br><br><div dir="ltr">Good day,<br><div class="gmail_quote"><div dir="ltr"><br>When I am trying to run SQLSmith on a schema with loaded POSTGIS extension (even when no tables are using POSTGIS types!), I am continuously getting:  <br><br>SELECT: rt_raster.c:1443: rt_raster_from_band: Assertion `NULL != raster' failed.<br>FATAL: the database system is in recovery mode<br><br>It's PSQL 11 and POSTGIS 2.5.<br><br>Is there any workaround ?<br><br>select sample_0.classoid as c0, case when public.st_mapalgebra( cast( public.st_union( cast(cast(null as raster) as raster), cast((select avg_width from pg_catalog.pg_stats limit 1 offset 4) as int4)) over (partition by sample_0.objoid order by sample_0.description,sample_0.description) as raster), cast(pg_catalog.hashinet( cast(cast(null as inet) as inet)) as int4), cast(cast(null as raster) as raster), cast(case when (select col7 from public.child_psql_table_without_overlap limit 1 offset 1) >^ cast(null as point) then (select pg_catalog.bit_or(coord_dimension) from public.geography_columns) else (select pg_catalog.bit_or(coord_dimension) from public.geography_columns) end as int4), cast((select agginitval from pg_catalog.pg_aggregate limit 1 offset 5) as text), cast(case when cast(null as tinterval) >= cast(null as tinterval) then sample_0.description else sample_0.description end as text), cast(pg_catalog.timeofday() as text), cast(cast(coalesce(sample_0.description, sample_0.description) as text) as text), cast(sample_0.description as text), cast(cast(coalesce((select col4 from public.child_psql_table_without_overlap limit 1 offset 6) , (select pg_catalog.stddev(total_time) from pg_catalog.pg_stat_xact_user_functions) ) as float8) as float8)) @ cast(nullif( public.st_union( cast(cast(null as raster) as raster), cast(96 as int4), cast(sample_0.description as text)) over (partition by sample_0.objsubid order by sample_0.classoid), case when cast(null as float4) <> (select enumsortorder from pg_catalog.pg_enum limit 1 offset 6) then cast(coalesce(cast(null as raster), cast(null as raster)) as raster) else cast(coalesce(cast(null as raster), cast(null as raster)) as raster) end ) as raster) then sample_0.classoid else sample_0.classoid end as c1, case when EXISTS ( select ref_0.autoanalyze_count as c0, sample_0.objoid as c1, 41 as c2, public.st_union( cast(cast(null as raster) as raster), cast(sample_0.objsubid as int4)) over (partition by sample_0.objoid,ref_0.n_tup_hot_upd order by ref_0.vacuum_count) as c3, (select data_type from information_schema.user_defined_types limit 1 offset 1) as c4 from pg_catalog.pg_stat_user_tables as ref_0 where cast(null as raster) <<| public.st_mapalgebraexpr( cast(cast(null as raster) as raster), cast(sample_0.description as text), cast(sample_0.description as text), cast((select col16 from public.child_twice_inherits_inherited limit 1 offset 84) as float8)) limit 87) then sample_0.objoid else sample_0.objoid end as c2, cast(nullif(sample_0.objoid, (select pg_catalog.min(partrelid) from pg_catalog.pg_partitioned_table) ) as oid) as c3, sample_0.classoid as c4, sample_0.description as c5, sample_0.objoid as c6, sample_0.objsubid as c7, pg_catalog.current_user() as c8, sample_0.objoid as c9 from pg_catalog.pg_description as sample_0 tablesample system (3.6) where pg_catalog.btfloat4cmp( cast(case when ((select col13 from public.child_inherits_inherited_psql limit 1 offset 1) <@ cast(null as line)) or ((sample_0.objoid is NULL) and (cast(null as pg_lsn) <> cast(null as pg_lsn))) then case when public.seg_upper( cast(cast(null as seg) as seg)) < (select pg_catalog.sum(col3) from public.table) then (select pg_catalog.min(null_frac) from pg_catalog.pg_stats) else (select pg_catalog.min(null_frac) from pg_catalog.pg_stats) end else case when public.seg_upper( cast(cast(null as seg) as seg)) < (select pg_catalog.sum(col3) from public.table) then (select pg_catalog.min(null_frac) from pg_catalog.pg_stats) else (select pg_catalog.min(null_frac) from pg_catalog.pg_stats) end end as float4), cast(case when ((((cast(null as reltime) = cast(null as reltime)) or (false)) or ((select col8 from public.child_inherits_noninherited_psql limit 1 offset 2) >= (select col1 from public.pg_fdw_without_definition_psql limit 1 offset 2) )) and (cast(null as geometry) &&& cast(null as gidx))) and ((cast(null as isbn) >= (select col7 from public.table_with_psql_array_custom_type limit 1 offset 17) ) and (cast(null as inet) <= (select pg_catalog.min(col16) from public.child_inherits_inherited_psql) )) then cast(coalesce((select col0 from public.psql_table_for_type limit 1 offset 1) , cast(null as float4)) as float4) else cast(coalesce((select col0 from public.psql_table_for_type limit 1 offset 1) , cast(null as float4)) as float4) end as float4)) is NULL limit 44; <br><br><br>delete from information_schema.sql_implementation_info where cast(nullif(cast(nullif(case when cast(null as circle) &<| (select col7 from public.child_twice_inherits_inherited_psql limit 1 offset 6) then cast(null as raster) else cast(null as raster) end , cast(nullif(cast(null as raster), cast(null as raster)) as raster)) as raster), cast(nullif(case when (select col1 from public.fdw_table_with_custom_type_psql limit 1 offset 6) ~<=~ (select col2 from public.table_for_psql_inheritance limit 1 offset 5) then case when information_schema.sql_implementation_info.implementation_info_name is not NULL then cast(null as raster) else cast(null as raster) end else case when information_schema.sql_implementation_info.implementation_info_name is not NULL then cast(null as raster) else cast(null as raster) end end , case when information_schema.sql_implementation_info.integer_value is NULL then cast(null as raster) else cast(null as raster) end ) as raster)) as raster) &<| public.st_addband( cast(public.st_addband( cast(cast(null as raster) as raster), cast(case when cast(null as date) < cast(null as date) then cast(coalesce(cast(nullif(cast(null as _raster), cast(null as _raster)) as _raster), cast(nullif(cast(null as _raster), cast(null as _raster)) as _raster)) as _raster) else cast(coalesce(cast(nullif(cast(null as _raster), cast(null as _raster)) as _raster), cast(nullif(cast(null as _raster), cast(null as _raster)) as _raster)) as _raster) end as _raster), cast(case when (select public.st_makeline(extent) from public.raster_columns) @ cast(null as raster) then cast(coalesce(cast(nullif((select inhseqno from pg_catalog.pg_inherits limit 1 offset 2) , 8) as int4), case when (select col8 from public.table_with_custom_type limit 1 offset 5) ~ (select col8 from public.table_with_custom_type limit 1 offset 4) then 93 else 93 end ) as int4) else cast(coalesce(cast(nullif((select inhseqno from pg_catalog.pg_inherits limit 1 offset 2) , 8) as int4), case when (select col8 from public.table_with_custom_type limit 1 offset 5) ~ (select col8 from public.table_with_custom_type limit 1 offset 4) then 93 else 93 end ) as int4) end as int4), cast((select srid from public.spatial_ref_sys limit 1 offset 72) as int4)) as raster), cast(case when ((select col5 from public.table_with_fdw_custom_type limit 1 offset 2) ^@ cast(null as ltxtquery)) or (cast(null as name) !~~ (select prosrc from pg_catalog.pg_proc limit 1 offset 5) ) then case when true then cast(nullif(cast(null as _raster), cast(null as _raster)) as _raster) else cast(nullif(cast(null as _raster), cast(null as _raster)) as _raster) end else case when true then cast(nullif(cast(null as _raster), cast(null as _raster)) as _raster) else cast(nullif(cast(null as _raster), cast(null as _raster)) as _raster) end end as _raster), cast(case when cast(nullif(cast(null as tid), case when (EXISTS ( select information_schema.sql_implementation_info.comments as c0, ref_0.classoid as c1, ref_0.objoid as c2, (select parameter_types from pg_catalog.pg_prepared_statements limit 1 offset 4) as c3 from pg_catalog.pg_shdescription as ref_0 where true limit 100)) or (cast(null as raster) @ cast(null as raster)) then cast(null as tid) else cast(null as tid) end ) as tid) > cast(null as tid) then case when (select col13 from public.child_inherits_inherited_psql limit 1 offset 6) ?# cast(nullif(cast(null as box), cast(null as box)) as box) then 60 else 60 end else case when (select col13 from public.child_inherits_inherited_psql limit 1 offset 6) ?# cast(nullif(cast(null as box), cast(null as box)) as box) then 60 else 60 end end as int4), cast(pg_catalog.inet_server_port() as int4)) returning information_schema.sql_implementation_info.comments as c0, information_schema.sql_implementation_info.comments as c1, information_schema.sql_implementation_info.integer_value as c2, public._postgis_pgsql_version() as c3, information_schema.sql_implementation_info.implementation_info_id as c4, public.isn_weak() as c5;<br><div><br></div><div>Regards</div><div>Olga<br></div></div>
</div></div>
</div></div>
</div></blockquote></div><br></div>_______________________________________________<br>
postgis-devel mailing list<br>
<a href="mailto:postgis-devel@lists.osgeo.org" target="_blank">postgis-devel@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/postgis-devel" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/postgis-devel</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div>Darafei Praliaskouski</div><div>Support me: <a href="http://patreon.com/komzpa" target="_blank">http://patreon.com/komzpa</a></div></div></div></div>