Open cherio opened 5 years ago
Indeed, if you run the script:
#!/usr/bin/perl
use 5.016;
my $name = 'process name string';
while ($name) {
$0 = $name;
say $name;
$name = $name =~ s/^.//r;
sleep 1;
}
In the htop see the process name: "ggggggngggggggggngg"
I am also affected by this issue.
CREATE INDEX AS here is "CREATE TABLE AS" that was replaced by "CREATE INDEX".
This has already been fixed in #812.
Hisham,
It looks like
htop
doesn't always properly update process names when the corresponding option is enabled (as suggested in #672). Specifically I observe this happening with postgresql processes. To me it feels like it refreshes the name but the remainder of that line retains what it displayed previously.Take a look at the screenshot I attached.
Notice that some
postgres
processes end with "idle
" but others end with "idle in transaction
" or "idleCT
". Those that display "idleCT
" previously displayed "SELECT
" and after the name changes it refreshes the 1st 4 characters but retains "CT
" after "idle
". Same applies to those that end with "idle in transaction
". When the name changes to end with "idle
" the remainder "in transaction
" isn't cleared. Similar symptoms (not on the screenshot) are when apostgres
process name that ends with "UPDATE
" or "INSERT
" turns to a name that ends with "idleTE
" or "idleRT
" respectively. I am sure you see the picture.Environment:
Let me know if you need more info. Thanks!!!