tuhaihe commented on PR #929:
URL: https://github.com/apache/cloudberry/pull/929#issuecomment-2782203999

   Hey, @edespino thanks for your valuable feedback. I made updates to my PR 
after considering your suggestions. Please take a look again.
   
   I also did some tests under different environments. The following are the 
outputs:
   
   1. Testing via `git clone` the source code with full commit log: 
   
   ```shell
   [gpadmin@cdw cloudberry]$ /usr/local/cloudberry-db/bin/postgres --gp-version
   postgres (Apache Cloudberry) 2.0.0devel+dev.1533.gc73181c522 build dev
   
   [gpadmin@cdw cloudberry]$ ./getversion
   2.0.0devel+dev.1533.gc73181c522 build dev
   
   [gpadmin@cdw cloudberry]$ psql template1 -c 'SELECT version()'
                                                                                
                               version
   
   
----------------------------------------------------------------------------------------------------------------------------------------------
   
----------------------------------------------------------------------------------
    PostgreSQL 14.4 (Apache Cloudberry 2.0.0devel+dev.1533.gc73181c522 build 
dev) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (
   Red Hat 11.5.0-5), 64-bit compiled on Apr  6 2025 23:09:03 (with assert 
checking)
   (1 row)
   ```
   
   2. Testing via downloading the source .tar file:
   ```
   [gpadmin@cdw cloudberry]$ /usr/local/cloudberry-db/bin/postgres --gp-version
   postgres (Apache Cloudberry) 2.0.0devel build dev
   
   [gpadmin@cdw cloudberry]$ ./getversion
   2.0.0devel build dev
   
   [gpadmin@cdw cloudberry]$ psql template1 -c 'SELECT version()'
                                                                                
                     version
   
   
----------------------------------------------------------------------------------------------------------------------------------------------
   -------------------------------------------------------------
    PostgreSQL 14.4 (Apache Cloudberry 2.0.0devel build dev) on 
x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5), 
64
   -bit compiled on Apr  6 2025 23:22:50 (with assert checking)
   (1 row)
   ```
   
   3. Testing when the current HEAD is on a tag
   ```
   [gpadmin@cdw cloudberry]$ ./getversion
   2.0.0devel+dev.1533.gc73181c522 build dev
   
   [gpadmin@cdw cloudberry]$ git config --global user.email 
"[email protected]"
   [gpadmin@cdw cloudberry]$ git config --global user.name "Dianjin Wang"
   [gpadmin@cdw cloudberry]$ git tag -a 2.0.0 
c73181c522056878361e3279c3934043fd27a4d9 -m "Test 2.0.0 tag"
   [gpadmin@cdw cloudberry]$ ./getversion
   2.0.0devel build dev
   
   [gpadmin@cdw cloudberry]$ /usr/local/cloudberry-db/bin/postgres --gp-version
   postgres (Apache Cloudberry) 2.0.0devel build dev
   
   [gpadmin@cdw cloudberry]$ psql template1 -c 'SELECT version()'
                                                                                
                     version
   
   
----------------------------------------------------------------------------------------------------------------------------------------------
   -------------------------------------------------------------
    PostgreSQL 14.4 (Apache Cloudberry 2.0.0devel build dev) on 
x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5), 
64
   -bit compiled on Apr  6 2025 23:35:50 (with assert checking)
   (1 row)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to