<div dir="ltr">Not disagreeing about the bug - but:<div><br></div><div>A "serial" data type in PostgreSQL is syntatic sugar for "integer NOT NULL DEFAULT nextval('some_sequence'::regclass)" combined with the implicit creation of a sequence used in the DEFAULT clause.<div><div><br></div><div>So the D&D function *do* create the correct base type for the column, but fails to create the corresponding sequence and default clause for the column. </div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-21 15:31 GMT+01:00 Paolo Cavallini <span dir="ltr"><<a href="mailto:cavallini@faunalia.it" target="_blank">cavallini@faunalia.it</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
when D&D between different DBs, a SERIAL column is silently converted<br>
into a int4, and trying to modify the table through the DB Manager edit<br>
table tool throws an error. To me this seems a bug, anyone disagrees?<br>
Thanks.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Paolo Cavallini - <a href="http://www.faunalia.eu" rel="noreferrer" target="_blank">www.faunalia.eu</a><br>
QGIS & PostGIS courses: <a href="http://www.faunalia.eu/training.html" rel="noreferrer" target="_blank">http://www.faunalia.eu/training.html</a><br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
List info: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a></font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Med venlig hilsen<div><br></div><div>Bo Victor Thomsen</div><div><br></div></div>
</div></div></div></div>