TAKE THAT, GAVIN NEWSOM! How Texas shrank its homelessness population — and what it can teach California.

San Jose’s homelessness response team visited Houston earlier this year. City and county representatives from the Los Angeles area went last fall. They came away jealous of some of the advantages Houston has over California cities – such as the lower housing costs that make it easier for the Texas metropolis to find or build homes for people.

But the Californians also were impressed by the way the city coordinates with the county and other local organizations, prioritizes funding for permanent housing instead of temporary shelters and finds places for people before clearing encampments.

“What those folks are doing – really focusing on housing folks – is working,” said Alex Visotzky, senior California policy fellow for the National Alliance to End Homelessness.

In April, two city council members from the East Bay city of Richmond headed to Austin to tour a 51-acre tiny home community that provides permanent housing for 350-and-counting homeless residents. Elected officials from Sacramento trekked to San Antonio to see a 1,600-person shelter that offers everything from dental care to counseling – serving nearly the city’s entire homeless population in one place.

Many experts agree California can learn something from these homeless solutions. But unless the Golden State fixes its housing affordability crisis decades in the making, copying the Lone Star State will get us only so far, said Eric Tars, legal director of the National Homelessness Law Center.

“Elected officials in California are desperate for quick-fix solutions,” he said. “They want a silver bullet to be able to solve homelessness for them. And so when they see results like what’s happening in Houston…they say, ‘that’s great, we want that.’”

As Thomas Sowell wrote about the Bay Area’s ultra-expensive real estate, it’s “The Housing Price of Liberalism.”

In this part of California, liberalism reigns supreme and “open space” is virtually a religion. What that lovely phrase means is that there are vast amounts of empty land where the law forbids anybody from building anything.

Anyone who has taken Economics 101 knows that preventing the supply from rising to meet the demand means that prices are going to rise. Housing is no exception.

Yet when my wife wrote in a local Palo Alto newspaper, many years ago, that preventing the building of housing would cause existing housing to become far too expensive for most people to afford it, she was deluged with more outraged letters than I get from readers of a nationally syndicated column.

What she said was treated as blasphemy against the religion of “open space” — and open space is just one of the wonderful things about the world envisioned by liberals that is ruinously expensive in the mundane world where the rest of us live.

As Sowell writes, “Much as many liberals like to put guilt trips on other people, they seldom seek out, much less acknowledge and take responsibility for, the bad consequences of their own actions.”