[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgis-users
Subject:    RE: need help
From:       "Regina Obe" <lr () pcorp ! us>
Date:       2024-04-04 22:37:37
Message-ID: 001601da86e0$b26cec10$1746c430$ () pcorp ! us
[Download RAW message or body]

This is a multipart message in MIME format.


I'd check to make sure hibernate has usage rights and execute for all
functions.

 

I recall they changed that in PG 15 I think it was.

 

From: Bekir Niyaz <bagafoot@hotmail.com> 
Sent: Wednesday, April 3, 2024 4:52 AM
To: postgis-users@lists.osgeo.org
Subject: need help

 

Hello again I updated postgis from 3.0 to 3.3 but didn't execute "alter
extension postgis UPDATE;" and restart db. The query was working well but
after update it starts throwing errors below. 

 

ERROR:  type "geometry" does not exist at character 98
QUERY:  SELECT
ST_FlipCoordinates(st_setsrid(st_geogfromtext(replace(new.tesiskoordinat,','
,'.')),4326)::geometry)

 

it is a simple insert into sql, it throws only when inserted via hibernate, 

postgis installed in public schema and

user has search_path= public, another_schema 

table has select priviliges on public.spatial_ref_sys

 

 

when I check installed extention with \dx the output

  postgis            | 3.0.4   | public     | PostGIS geometry, geography,
and raster spatial types and functions

 

but when run select Postgis_Version();

 3.3 USE_GEOS=1 USE_PROJ=1 USE_STATS=1


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" \
CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	font-size:12.0pt;
	font-family:"Aptos",sans-serif;}
p.elementtoproof, li.elementtoproof, div.elementtoproof
	{mso-style-name:elementtoproof;
	margin:0in;
	font-size:12.0pt;
	font-family:"Aptos",sans-serif;}
span.EmailStyle20
	{mso-style-type:personal-reply;
	font-family:"Aptos",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;
	mso-ligatures:none;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#467886" \
vlink="#96607D" style='word-wrap:break-word'><div class=WordSection1><p \
class=MsoNormal><span style='font-size:11.0pt'>I&#8217;d check to make sure hibernate \
has usage rights and execute for all functions.<o:p></o:p></span></p><p \
class=MsoNormal><span style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span style='font-size:11.0pt'>I recall they changed that in PG 15 I \
think it was.<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt'><o:p>&nbsp;</o:p></span></p><div \
style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div \
style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p \
class=MsoNormal><b><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span \
style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Bekir Niyaz \
&lt;bagafoot@hotmail.com&gt; <br><b>Sent:</b> Wednesday, April 3, 2024 4:52 \
AM<br><b>To:</b> postgis-users@lists.osgeo.org<br><b>Subject:</b> need \
help<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p \
class=elementtoproof><span style='font-family:"Calibri",sans-serif;color:black'>Hello \
again I updated postgis from 3.0 to 3.3 but didn't execute &quot;alter extension \
postgis UPDATE;&quot; and restart db. The query was working well but after update it \
starts throwing errors below.&nbsp;</span><o:p></o:p></p><p><span \
style='font-family:"Calibri",sans-serif;color:black'>&nbsp;</span><o:p></o:p></p><p><span \
style='font-family:"Calibri",sans-serif;color:black'>ERROR: &nbsp;type \
&quot;geometry&quot; does not exist at character 98<br>QUERY: &nbsp;SELECT \
ST_FlipCoordinates(st_setsrid(st_geogfromtext(replace(new.tesiskoordinat,',','.')),4326)::geometry)</span><o:p></o:p></p><p><span \
style='font-family:"Calibri",sans-serif;color:black'>&nbsp;</span><o:p></o:p></p><p><span \
style='font-family:"Calibri",sans-serif;color:black'>it is a simple insert into sql, \
it throws only when inserted via hibernate,&nbsp;</span><o:p></o:p></p><p><span \
style='font-family:"Calibri",sans-serif;color:black'>postgis installed in public \
schema and</span><o:p></o:p></p><p><span \
style='font-family:"Calibri",sans-serif;color:black'>user has search_path= public, \
another_schema&nbsp;</span><o:p></o:p></p><p><span \
style='font-family:"Calibri",sans-serif;color:black'>table has select priviliges on \
public.spatial_ref_sys</span><o:p></o:p></p><p><span \
style='font-family:"Calibri",sans-serif;color:black'>&nbsp;</span><o:p></o:p></p><p><span \
style='font-family:"Calibri",sans-serif;color:black'>&nbsp;</span><o:p></o:p></p><p><span \
style='font-family:"Calibri",sans-serif;color:black'>when I check installed extention \
with \dx the output</span><o:p></o:p></p><p class=elementtoproof><span \
style='font-family:"Calibri",sans-serif;color:black'>&nbsp;&nbsp;postgis &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| 3.0.4 &nbsp; | public &nbsp; &nbsp; | PostGIS \
geometry, geography, and raster spatial types and functions</span><o:p></o:p></p><p \
class=elementtoproof style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><p \
class=elementtoproof style='margin-bottom:12.0pt'><span \
style='font-family:"Calibri",sans-serif;color:black'>but when run select \
Postgis_Version();</span><o:p></o:p></p><p class=elementtoproof \
style='margin-bottom:12.0pt'><span \
style='font-family:"Calibri",sans-serif;color:black'>&nbsp;3.3 USE_GEOS=1 USE_PROJ=1 \
USE_STATS=1</span><o:p></o:p></p></div></div></body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic