!ZmSluDJMNfyTwfQEJh:osgeo.org

PostGIS

116 Members
Spatial objects for PostgreSQL | http://postgis.net | logs at https://view.matrix.org/alias/%23postgis:osgeo.org6 Servers

Load older messages


SenderMessageTime
18 Apr 2024
@techdude1996:osgeo.orgtechdude1996If I need to make all the fields in an existing table be made lowercase, what's the best/recommended route?19:41:12
@robe:osgeo.orgRegina Obe
In reply to @techdude1996:osgeo.org
If I need to make all the fields in an existing table be made lowercase, what's the best/recommended route?
I use information_schema.columns to generate the sql to rename something like SELECT string_agg('ALTER TABLE ' || quote_ident(table_schema) || '.' || quote_ident(table_name) || ' RENAME ' || quote_ident(column_name ) || ' TO ' || quote_ident(lower(column_name)), ';') FROM information_schema.columns WHERE table_schema = 'schema here' AND table_name = 'table here' table_schema = 'staging' AND table_name = 'comps_rollup' AND column_name != lower(column_name);
19:50:44
@robe:osgeo.orgRegina Obe
In reply to @techdude1996:osgeo.org
If I need to make all the fields in an existing table be made lowercase, what's the best/recommended route?
* I use information_schema.columns to generate the sql to rename something like SELECT string_agg('ALTER TABLE ' || quote_ident(table_schema) || '.' || quote_ident(table_name) || ' RENAME ' || quote_ident(column_name ) || ' TO ' || quote_ident(lower(column_name)), ';') FROM information_schema.columns WHERE table_schema = 'schema here' AND table_name = 'table here' AND column_name != lower(column_name);
19:51:10
@robe:osgeo.orgRegina Obeyou can put the string in a DO command, but I like to do it that way, so I can see what will run before it runs, and perhaps take out some I don't want run19:51:59
@robe:osgeo.orgRegina Obe
In reply to @darkblueb:osgeo.org
mr komzpa has to deal with serious language issues every day.. I can see the temptation to use a machine for the human translations part, and for thoroughness.. but .. #postgis ? caution
Mr. Komzpa command of english is way better than mine. I suspect I need a human translator way more than he does.
20:23:53
@robe:osgeo.orgRegina Obe
In reply to @_slack_osgeo_UJM07FH5H:matrix.org
Huh, not from my perspective. Most issues filed are legit problems.
Yah luckily PostGIS, GEOS, and JTS aren't so important yet that people will waste tokens posting frivolous bogus bug reports.
20:25:14
@robe:osgeo.orgRegina Obe
In reply to @latot:matrix.org
IIRC here the AI is a problem too, GrayShade also said there is a lot of reports that are a waste of time? or was Regina Obe ?
Probably me -- with the Curl complaints and my husband Leo whining about how all his students put their text into an ChatGPT translator and what he gets back is dialog he knows is not there's and is much much longer
20:26:50
@grayshade:dend.roGrayShade
In reply to @robe:osgeo.org
Probably me -- with the Curl complaints and my husband Leo whining about how all his students put their text into an ChatGPT translator and what he gets back is dialog he knows is not there's and is much much longer
Theirs? 😛
20:28:56
@robe:osgeo.orgRegina ObeReminds me of a cartoon I saw recently was very funny now I can't find it20:29:25
@robe:osgeo.orgRegina Obe
In reply to @grayshade:dend.ro
Theirs? 😛
Damn these non-english speakers correcting my english grammar. Don't you have something better to do with your time?
20:29:57
@grayshade:dend.roGrayShade
In reply to @robe:osgeo.org
Damn these non-english speakers correcting my english grammar. Don't you have something better to do with your time?
Well, I should be sleeping..
20:30:32
@robe:osgeo.orgRegina ObeBut it's more fun to correct my grammar20:30:56
@grayshade:dend.roGrayShade
In reply to @robe:osgeo.org
But it's more fun to correct my grammar
I had to, after your previous remark 😛
20:32:05
@darkblueb:osgeo.orgdarkbluebthe nice PhD woman I just talked to claims to have US Census, American Community Survey details, and relationship to public transportation.. supplied to their AWS crunchy setup20:50:30
@darkblueb:osgeo.orgdarkbluebthats a lot of data !! curious who is a vendor for that 20:50:52
@robe:osgeo.orgRegina ObeWhy do you need a vendor? Isn't it all publically available data or you mean the packaging of it?20:52:03
@darkblueb:osgeo.orgdarkbluebthe ACS details are hundreds of columns, with secret-sauce linkage 20:52:30
@robe:osgeo.orgRegina Obesecret source linkage?20:52:48
@darkblueb:osgeo.orgdarkbluebyes, the tables are encoded in a certain way.. 20:53:02
@robe:osgeo.orgRegina ObeI just download all that stuff from their website. What secret sauce am I missing? or is it just secret bullshit20:53:18
@darkblueb:osgeo.orgdarkbluebhmm "stuff" ?20:53:45
@robe:osgeo.orgRegina Obe:)20:54:08
@robe:osgeo.orgRegina ObeYah sorry for my fowl language. Guess I'm in a bit of a foul mood today20:54:27
@darkblueb:osgeo.orgdarkbluebthis is a spatial JOIN on the Table 60 population ACS data https://paste.debian.net/1314498/20:58:06
@darkblueb:osgeo.orgdarkblueb logrecno and acs20125_seq_metadata are "secret-sauce linkage" 20:58:55
@darkblueb:osgeo.orgdarkblueb .. restrict to a census geometry called '05000US06001' 20:59:49
@darkblueb:osgeo.orgdarkblueb.. the number of characters in that ID says what geo level it is21:00:06
@darkblueb:osgeo.orgdarkblueb that is .. US State of California (06) and county ID 1 21:00:38
@darkblueb:osgeo.orgdarkbluebthat "stuff" :-)21:00:51
@darkblueb:osgeo.orgdarkblueb.. I wrote that by hand long ago, these people got a contract to do that and appear to be maintaining it .. (the PhD woman did not care to mention the name of the company she buys this from ) https://github.com/censusreporter/census-postgres21:09:57

There are no newer messages yet.


Back to Room ListRoom Version: 9