I have troubles retrieving SQL query results from PostgreSQL tables having varchar (character varying) or text datatype columns into DBGrid.
If I set text datatype in PostgreSQL, then resultset cannot be read in DBGrid, since it is treated as memo (?!?).
If I change datatype to varchar, it seems that SQLQuery treats all columns as maximum length size. If I save it to file and load to TBufDataset by using LoadFromFile method, it occupies all memory and loading is incredible slow...
Is there a way to optimize this?
Note that I cannot restrict varchar size in PostgreSQL, since tables are created dynamically from unknown imported files not know in design time....